[abc-users] Capturing synchronized blocks - StmtShadowMatch or BodyShadowMatch

From: Eric Bodden <eric@bodden.de>
Date: Mon Mar 28 2005 - 20:37:10 BST

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I am trying to implement a pointcut "synchronizedExecution", which
matches on synchronized block as synchronized(this) {...}. It has
basically the same matching semantics as this/target/args, so you can
pass in a type pattern or a formal in order to expose the bound
object.

My problem at the moment is the ShadowMatch: As I understood from the
turorial there are matches on statements and bodies. I, however, want
to match on only a part of the body, being the synchronized block. So
what ShadowMatch should I extend?

Identifying this block is one task. This seems quite tedious because
of exception handling and rethrowing in monitor regions, so the end
of the block seems to be hard to identify. However I think this is
necessary, in order to allow around() to work, is that right?

Thanks a lot,
Eric

- --
Eric Bodden
RWTH Aachen University
ICQ UIN: 12656220, Skype: ericbodden, PGP: BB465582
Website: http://www.bodden.de

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQkhc5cwiFCm7RlWCEQIvlACg2HLfAKX0qchx+eYcTdXB1VpTtRQAn2jC
kM17c2iNN7Kkh5z8DZ7qp/cX
=YdID
-----END PGP SIGNATURE-----
Received on Mon Mar 28 20:37:21 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 31 2005 - 09:40:06 BST