Bug 63347 - NoSuchMethodError: aspectOf on JRockit JVM
Summary: NoSuchMethodError: aspectOf on JRockit JVM
Status: RESOLVED INVALID
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-20 20:20 EDT by Nicholas Lesiecki CLA
Modified: 2004-10-21 04:31 EDT (History)
1 user (show)

See Also:


Attachments
Test case as source (1.17 KB, application/octet-stream)
2004-05-20 20:22 EDT, Nicholas Lesiecki CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Lesiecki CLA 2004-05-20 20:20:14 EDT
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.
Comment 1 Nicholas Lesiecki CLA 2004-05-20 20:22:58 EDT
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...
Comment 2 Andrew Clement CLA 2004-07-27 08:20:48 EDT
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...
Comment 3 Staffan Larsen CLA 2004-08-11 08:41:51 EDT
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
Comment 4 Andrew Clement CLA 2004-08-11 09:27:08 EDT
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.
Comment 5 Adrian Colyer CLA 2004-10-21 04:31:20 EDT
Fix released as part of AspectJ 1.2.1