Bug 149347 - Problem Showing Crosscutting Structure
Summary: Problem Showing Crosscutting Structure
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-30 19:34 EDT by Ron Bodkin CLA
Modified: 2007-01-29 06:15 EST (History)
0 users

See Also:


Attachments
Small sample project (6.67 KB, application/java-archive)
2006-06-30 19:35 EDT, Ron Bodkin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bodkin CLA 2006-06-30 19:34:23 EDT
The attaching tiny self-contained AJDT project fails to visualize crosscutting information, presumably because of the nested inner aspect. It doesn't show information in the Cross References view nor does it show advice markers in the gutter (although it does show a gutter annotation for "go to related location" on the relevant method.

If you move the aspect out as a top-level type, then everything works. With the aspect nested, the program compiles and runs properly, including showing the declare warning in the problems view.

Here is the trace output:
4:36:57 PM ===========================================================================================
4:36:57 PM Build kind = FULLBUILD
4:36:57 PM Project=glassboxAgent, kind of build requested=Full AspectJ compilation
4:36:57 PM Builder: Tidied output folder(s), deleted 4 .class files
4:36:57 PM Classpath=C:\devel\tmp\bugwks\glassboxAgent\bin;C:/java/jdk1.5.0_06/jre/lib/rt.jar;C:/java/jdk1.5.0_06/jre/lib/jsse.jar;C:/java/jdk1.5.0_06/jre/lib/jce.jar;C:/java/jdk1.5.0_06/jre/lib/charsets.jar;C:/java/jdk1.5.0_06/jre/lib/ext/dnsns.jar;C:/java/jdk1.5.0_06/jre/lib/ext/dns_sd.jar;C:/java/jdk1.5.0_06/jre/lib/ext/jmf.jar;C:/java/jdk1.5.0_06/jre/lib/ext/localedata.jar;C:/java/jdk1.5.0_06/jre/lib/ext/QTJava.zip;C:/java/jdk1.5.0_06/jre/lib/ext/sound.jar;C:/java/jdk1.5.0_06/jre/lib/ext/sunjce_provider.jar;C:/java/jdk1.5.0_06/jre/lib/ext/sunpkcs11.jar;C:/eclipse/3.2/plugins/org.junit_3.8.1/junit.jar;C:/eclipse/3.2/plugins/org.aspectj.runtime_1.5.2.20060629124300/aspectjrt.jar;
4:36:57 PM Preparing for build: not going to be incremental because no successful previous full build
4:36:57 PM AJC: compiling source files
4:36:57 PM Timer event: 330ms: Time to first compiled message
4:36:57 PM AJC: compiled: C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\summary\NestedStatsSummarizer.aj
4:36:57 PM AJC: compiled: C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\util\logging\api\LogManagement.aj
4:36:57 PM AJC: compiled: C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\util\logging\api\LogOwner.java
4:36:57 PM AJC: processing reweavable state
4:36:57 PM AJC: adding type mungers
4:36:57 PM addSourcelineTask message=Extending interface set for type 'glassbox.summary.NestedStatsSummarizer$SummarizeTopLevel' (NestedStatsSummarizer.aj) to include 'glassbox.util.logging.api.LogOwner' (LogManagement.aj)
4:36:57 PM Timer event: 360ms: Time to first woven message
4:36:57 PM AJC: woven aspect glassbox.summary.NestedStatsSummarizer$SummarizeTopLevel (from C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\summary\NestedStatsSummarizer.aj)
4:36:57 PM AJC: woven aspect glassbox.util.logging.api.LogManagement (from C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\util\logging\api\LogManagement.aj)
4:36:57 PM addSourcelineTask message=Extending interface set for type 'glassbox.summary.NestedStatsSummarizer' (NestedStatsSummarizer.aj) to include 'glassbox.util.logging.api.LogOwner' (LogManagement.aj)
4:36:57 PM addSourcelineTask message=Join point 'method-execution(void glassbox.summary.NestedStatsSummarizer.help(java.lang.Object))' in Type 'glassbox.summary.NestedStatsSummarizer' (NestedStatsSummarizer.aj:14) advised by before advice from 'glassbox.summary.NestedStatsSummarizer$SummarizeTopLevel' (NestedStatsSummarizer.aj:19)
4:36:57 PM AJC: woven class glassbox.summary.NestedStatsSummarizer (from C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\summary\NestedStatsSummarizer.aj)
4:36:57 PM addSourcelineTask message=helping file=C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\summary\NestedStatsSummarizer.aj line=14
4:36:57 PM AJC: woven class glassbox.util.logging.api.LogOwner (from C:\devel\tmp\bugwks\glassboxAgent\src\glassbox\util\logging\api\LogOwner.java)
4:36:57 PM AspectJ reports build successful, build was: FULL
4:36:57 PM AJDE Callback: finish()
4:36:57 PM Timer event: 400ms: Total time spent in AJDE
4:36:57 PM Timer event: 0ms: Create element map (4 rels in project: glassboxAgent)
4:36:57 PM Types affected during build = 3
4:36:57 PM Timer event: 0ms: Add markers (3 markers)
4:36:57 PM Timer event: 541ms: Total time spent in AJBuilder.build()
Comment 1 Ron Bodkin CLA 2006-06-30 19:35:02 EDT
Created attachment 45630 [details]
Small sample project
Comment 2 Ron Bodkin CLA 2006-06-30 19:49:35 EDT
In fact even pulling the aspect out into a top-level type causes the problem sometimes (although it did work when I did it one time).
Comment 3 Matt Chapman CLA 2007-01-29 06:15:42 EST
Crosscutting information to/from the inner aspect seems to be working correctly, at least in AJDT 1.5.0.200701160615 for Eclipse 3.3M4