Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] field name conflict

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

The documentation does not explicitly seem to mention privileged
aspects, but given the behavior for non-privileged aspects I guess you
could expect a conflict. Maybe you should file a bug report about this
issue after all.

 - Gijs Peek

Dehua Zhang wrote:
> Hi Gijs,
>
> In my sample code, the aspect is modified with "privileged", so
> private fields of classes is also visible to the aspect,
> considering this, do you think there is conflict?
>
> -- Dehua Zhang Sable Research Group, McGill University Montréal,
> Québec, Canada http://www.cs.mcgill.ca/~dzhang25
>
>
>
>
>
> -----Original Message----- From: aspectj-users-bounces@xxxxxxxxxxx
> on behalf of Gijs Peek Sent: Mon 2/4/2008 14:16 To:
> aspectj-users@xxxxxxxxxxx Subject: Re: [aspectj-users] field name
> conflict
>
> This is intended behavior (i.e., no bug). The private inter-type
> field is privately visible to the aspect, and as such does not
> conflict with the private member in the class.
>
> See
> http://www.eclipse.org/aspectj/doc/released/progguide/semantics-declare.html#access-modifiers
>  for details.
>
> cheers, - Gijs Peek
>
> Dehua Zhang wrote:
>> See the sample code below,
>
>> public class OneType { private String r; }
>
>> privileged aspect A { private int OneType.r; //no error }
>
>> Since aspect A is declared as privileged, so it should have
>> access to
> the private filed "String OneType.r", therefore, the ITD "int
> OneType.r" is conflict with the "String OneType.r", I got no
> warning regarding this.
>> However, I got an error for the following code, privileged aspect
>> A { public int OneType.r; //[error] inter-type declaration from A
>>
> conflicts with existing member: java.lang.String onType.r
>> }
>
>
>> Is this an intended behavior or a bug? I tried both 1.5.4 and
> DEVELOPMENT-20080125213731.
>> -- Dehua Zhang Sable Research Group, McGill University Montréal,
>> Québec, Canada http://www.cs.mcgill.ca/~dzhang25
>
>> _______________________________________________ aspectj-users
>> mailing list aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBR6jNd7b66fbjXztVAQKW1g/7B+Bwe718reeDwUrykMDpM9QDn8oUZZIZ
dWtLkMVXbJidUmNimMscWaQ6A7uBT+rSCituWWAODWCiAGbQyEjhgPZjyZmMFdwu
ZL+vMb2/AR3/+EpLL1r8eix4CwT0g1fQ2y3x5JA355qXmie0J/7svH6fRlaZ+Ln0
B3dD4vb83cNlmj/VXqEh7tC6tRyb3lKBlITdCLFRLlphWYcjSO58esivg5tUB6Jd
IIMoWm+JeBpHZsBI0RkhqCPogi/TOFRZ4sxOjCoZAVr+5wbTqrIwtoGrM9LjMh7g
5WWREU/fluNyLRrE+trc9rya/7isy9yi2MsMs5InC9dHbEQM8KOR2GN6htwKMgz8
1hcryLxhzHiyu0Ei7sNM5cfaJw10GvdA8Xl0EI7kAH4Yq7kP1Snhh6avG05u6LM2
HqZPnhyj3gP0JvEUx+n5RwGR6sonq1oLFQuoiT+o7TjBTsjN3Y2AJOzF9GHgXhNM
cOHT2uxt31VtzmF67MUg1PD91Qgchy4wkgeqqhFi2xW6PZxvi4yG81FFt3+n3fVL
C9uyxh7aPzDN4Ml7gsWV3hzfrgl7QEZgpxsdWpeZlGfqlvwR3BRLfPXYP8Ruyra3
oYvaMY6UM61v6x69Qmwa0Pd2XxMirNr8qrFYu5y7pRDHGBku37aQ6jSP6uKOIsiJ
+hXgdnxXWQo=
=6Job
-----END PGP SIGNATURE-----



Back to the top