Bug 93209 - (no debug info available) advised by before advice
Summary: (no debug info available) advised by before advice
Status: RESOLVED WORKSFORME
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-28 22:31 EDT by Jun Xu CLA
Modified: 2005-08-25 03:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jun Xu CLA 2005-04-28 22:31:27 EDT
When I try to weave a jar file in a tool, I got the following error:
Type 'xx.x.x.xx.' (no debug info available) advised by before advice 
from 'xxxxx' (xxxx.java:4)

I've search the bugzillar database, but didn't find something simallar.

if source codes are compiled without debug information, does AJC work correctly?
Comment 1 Andrew Clement CLA 2005-04-29 03:57:06 EDT
AspectJ works perfectly without line number information (or local variable
information) - it is just that any weaving info messages we put out can't have
accurate line number info in.
Comment 2 Jun Xu CLA 2005-04-29 05:08:09 EDT
(In reply to comment #1)
> AspectJ works perfectly without line number information (or local variable
> information) - it is just that any weaving info messages we put out can't have
> accurate line number info in.

So, you mean the jar file has been weaved successfully ?
Comment 3 Andrew Clement CLA 2005-04-29 05:27:20 EDT
Yep - the jar will be woven correctly.
Comment 4 Jun Xu CLA 2005-04-29 06:06:45 EDT
Thank you very much.

I have another question, how about the eclipse plugin environment ?
is there anything differently ?
I add the aspectjrt.jar to plugin.xml.
But when I run the plugin, it says:

.... [java.lang.NoClassDefFoundError] - 
org/aspectj/lang/NoAspectBoundException.].


=======================
Class clazz = (Class)AccessController.doPrivileged(loader, acc);
            if (clazz == null) {                    
                if (scl) {                                                      
                    ClassLoaderDiagnosticsHelper.failedToLoadClass(this, 
name);                }                                                         
                throw new ClassNotFoundException(name);   // HERE    
            }
            
Comment 5 Andrew Clement CLA 2005-04-29 06:47:37 EDT
as discussed on sametime, you need to export aspectjrt.jar as a library on the
ProjectProperties>JavaBuildPath page.

Or a better alternative might be to depend on the org.aspectj.runtime plugin
that exports the library you need.
Comment 6 Andrew Clement CLA 2005-05-03 05:39:57 EDT
Are we ok to close this now its resolved?  (per our sametime discussion?)
Comment 7 Andrew Clement CLA 2005-08-25 03:59:33 EDT
believed resolved - if you have any more problems with the weave info debug
messages or the aspectjrt dependency, please reopen.