Community
Participate
Working Groups
AJDT 1.2.0.20050124144759, Java 1.5.0-b64 on XP SP2 runtime error "Illegal field modifiers in class lang15/IP: 0x8A" when using pertype() with an interface type. (I'll add to tests if I have time.) ------------lang15/PerType.java package lang15; interface IP {} /** * PerType */ public class PerType implements IP { public static void main(String[] args) { System.out.println("you got " + PT.aspectOf(PerType.class)); System.out.println("you got " + PT.aspectOf(IP.class)); System.out.println("you got " + PT.aspectOf(C.class)); } static class C extends PerType {} } aspect PT pertypewithin(IP+) { static int INDEX; final int index = INDEX++; public PT() { System.out.println("creating " + this); } public String toString() { return "me " + index; } }
See tests/bugs150/PR83645.java and tests/ajcTestsFailing.xml. Not tied into tests/src/../systemtest/... Test assumes, perhaps incorrectly, that a NoAspectBoundException is the correct result.
we should look at this before closing out m2...
test passing with latest builds, presume fixed by Andy when sorting out other ptw related bugs. I tried a few variants bug couldn't get it to fail. Will close once published build is available.
Build available, see download page: aspectj-DEVELOPMENT-20050324155000.jar