Bug 124813

Summary: AJDT throws a compiler error when trying to save a java file.
Product: [Tools] AspectJ Reporter: Ngak Leng Sim <nlsim>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Ngak Leng Sim CLA 2006-01-22 20:19:50 EST
org.aspectj.weaver.BCException
at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1095)
at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.weave(AjCompilerAdapter.java:300)
at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.afterCompiling(AjCompilerAdapter.java:178)
at org.aspectj.ajdt.internal.compiler.CompilerAdapter.ajc$afterReturning$org_aspectj_ajdt_internal_compiler_CompilerAdapter$2$f9cc9ca0(CompilerAdapter.aj:70)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:367)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:811)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:254)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.incrementalBuild(AjBuildManager.java:163)
at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:117)
at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)

BCException thrown: Can't find bcel delegate for shapes.Point type=class org.aspectj.weaver.ReferenceType
when weaving classes 
when weaving 
when incrementally building BuildConfig[/Users/sim/Documents/Courses/2006_Term2/CPSC411/ProblemSet1/.metadata/.plugins/org.eclipse.ajdt.core/ProblemSet1.generated.lst] #Files=9
Comment 1 Matt Chapman CLA 2006-01-23 06:06:21 EST
Passing over to the compiler.
Can you provide a testcase for this?
Comment 2 Helen Beeken CLA 2006-01-30 08:54:21 EST
bug 119882, bug 122096 and this bug are reporting the same error, although they could of course be caused by different things. I've managed to recreate a failure on this line (BcelWeaver.java:1095) and attached the testcase to bug 119882. The steps the test takes is:

Stage 1: Compile the 4 files, pack.A2 extends pack.A1 (aspects) where
         A2 uses a protected field in A1 and pack.C2 extends pack.C1 
         (classes) where C2 uses a protected field in C1
Stage 2: make the field private in class C1 ==> compile errors in C2
Stage 3: make the field private in aspect A1 whilst there's the compile
         error <<-- this causes the BCException

Does this sound similar to the steps you were taking when you saw this bug? 

If not, could you please describe in more detail what you were doing? Were there compile errors when you tried to save the file? Could provide a testcase?
Comment 3 Helen Beeken CLA 2006-02-13 06:04:42 EST
Marking this bug as a duplicate of bug 119882 because as mentioned before, they are reporting the same error.

*** This bug has been marked as a duplicate of 119882 ***
Comment 4 Eclipse Webmaster CLA 2007-07-29 09:18:51 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991