Project: AspectJ
Bug 251326 Anonymous inner classes declare inside an ITD method will cause IllegalAccessError
Reported: 2008-10-19 15:53:28 | Status: resolved fixed

If i declare an aspect in pkgB, having an ITD method for a class in pkgA using an inner anonymous class, is created in the pkgA package, package protected, but then instantiated from pkgB causeing the error. Test case is attached.

Files changed in fix:
tests/bugs163/pr251326/pkgA/Listener.java tests/bugs163/pr251326/pkgA/Target.java tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java