Community
Participate
Working Groups
Reported on the mailing list. If you use pertypewithin it can't do its job if the aspect can't see (via reflection rules) methods in the affected target. I think the visibility needs to be raised as part of applying the pertypewithin behaviour.
Sample code reproducing the problem: https://dev.eclipse.org/mhonarc/lists/aspectj-users/msg15196.html
The changes are in. Currently you need to specify privileged on the aspect in order for it to affect types that you normally cannot see from the aspect (private ones, those in a different package that have package visibility). When bugzilla is working properly again (and I can add versions) i'll tag this as 1.9.2 fixed.
Where can I find a snapshot for re-testing?
You don't trust me it works? :) There is a 1.9.2.BUILD-SNAPSHOT at repo.spring.io/snapshot / maven.springframework.org/snapshot maven repo
Of course I believe you, Andy. But in Germany the old saying goes: "Trust is good, control is better." I thought you would appreciate the feedback. ;-) I found the relevant snapshot JARs within these directories: http://maven.springframework.org/snapshot/org/aspectj/aspectjrt/1.9.2.BUILD-SNAPSHOT/ http://maven.springframework.org/snapshot/org/aspectj/aspectjweaver/1.9.2.BUILD-SNAPSHOT/ http://maven.springframework.org/snapshot/org/aspectj/aspectjtools/1.9.2.BUILD-SNAPSHOT/ Question: Did I miss something or is there also a complete installer JAR snapshot somewhere? I downloaded and renamed them to aspectjrt.jar etc., backed up the 1.9.1 JARs from my AspectJ installation, copied the snapshots into the installation's 'lib' directory and manually compiled the sample code from my initial mailing list post. I can confirm that now everything works as expected with private or package-protected classes. Bottom line: quick retest successful. :-)
There isn't an installer dev snapshot - the automated process for producing those broke a while ago and hasn't been setup again unfortunately.
thanks for testing that!
tidying up bugzilla