[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Accesing Enclosing Class fields
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[quote Irum Godil::on 1/25/2005 6:54 AM]
| Hi,
|
| I have the following class structure:
|
| class A {
| int x;
|
| class B{
| public void methodB() {
| int y = x;
| }
| }
|
| }
|
| Now, if I move the methodB into an aspect, I am unable to access A's field x from inside it. It is
no longer recognized by the aspect. What do I do to access A's field from there?
|
| thanks.
|
|
|
|
| ---------------------------------
| Do you Yahoo!?
| Yahoo! Search presents - Jib Jab's 'Second Term'
probably the answer is privileged aspects. pls consult the AspectJ documentation:
http://dev.eclipse.org/viewcvs/indextech.cgi/%7Echeckout%7E/aspectj-home/doc/progguide/index.html.
- --
:pope
[the_mindstorm]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
iD8DBQFB9e51TTDTje0R2dgRAsrpAJ0ROZVg7h4G/ZdfHjrnKkewALhUdACfWS03
+xkJY48XexpYDXzTPBukqJc=
=/Zns
-----END PGP SIGNATURE-----