Community
Participate
Working Groups
Unfortunately, I can't narrow this bug down much further. It seems to be very sensitive to the exact set of aspect behaviours enlisted in the attachment. However, the symptoms are, when compiled under 1.2rc2 and run under jrockit81sp2_141_05 (the latest version) I get the following output: 30 java.lang.NoSuchMethodError: aspectOf at problem.Foo.getName()Ljava.lang.String;(Foo.java:???) at problem.Foo.main([Ljava.lang.String;)V(Foo.java:14) The code executes without error under AspectJ 1.1.1 + JRockit and also executes correctly on AspectJ 1.2rc2 + Sun's Java 1.4.2.
Created attachment 10922 [details] Test case as source (Sorry this got assigned to you Jim, I know how you feel about JRockit bugs!) This test case reproduces the problem. Run Foo.main()--if it executes without error, the problem is solved...
I've just checked the change to aspectOf() (so that it decompiles cleanly) into the codebase: BUILD COMPLETE - build.315 Date of build: 07/26/2004 21:28:08 Time to build: 305 minutes 55 seconds Last changed: 07/26/2004 14:30:19 Log Entries: - Generated aspectOf() method for singleton aspects will now decompile cleanly. Might help with bug #63347 (JRockit related) - Fix for Bug 70619 compiler aborts with "conflicting dominates orders" with circular declare precedences Latest good AspectJ jar available at: download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar might help with this bug...might not...
This seems to be a problem in JRockit 81sp2, which has been fixed in 81sp3 (also known as 1.4.2 just to confuse things). It is available from BEA at: http://commerce.bea.com/showproduct.jsp?family=WLJR&major=JR142SDK&minor=0 Or, simpler, from download.com at: http://www.download.com/BEA-WebLogic-JRockit-SDK/3000-2417-10293837.html?tag=lst-0-1
Fantastic! thanks so much for taking the time to respond on this bug report. I'll close it now - Nick, please reopen if you still have problems.
Fix released as part of AspectJ 1.2.1