Community
Participate
Working Groups
I got this exception while incrementally compiling with AspectJ 1.5.0 (AJDT 1.3.0, build #20051220093604). There are a couple of compiler errors showing. I don't know of anything in particular that might have caused this. org.aspectj.weaver.BCException: Can't find bcel delegate for glassbox.monitor.thread.ThreadSnapshot type=class org.aspectj.weaver.ReferenceType when weaving classes when weaving when incrementally building BuildConfig[c:\devel\glassbox\.metadata\.plugins\org.eclipse.ajdt.core\glassboxMonitor.generated.lst] #Files=59 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) eclipse.buildId=M20050929-0840 java.version=1.5.0_06 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -showLocation Command-line arguments: -os win32 -ws win32 -arch x86 -showLocation
bug 119882 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 From the fact that it is mentioned in this bug that there are compile errors when the failure happens, the failing testcase might be more suited here. I'm waiting to hear back on bug 119882 if these steps are similar to those the raiser of that bug took since there is no mention of compile errors there.
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 ***