Bug 97144 - ClassCastException at BcelWeaver.java:933
Summary: ClassCastException at BcelWeaver.java:933
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.5.0M2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 1.5.0 M3   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-29 10:29 EDT by Nitzan Volman CLA
Modified: 2005-06-03 11:38 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 Nitzan Volman CLA 2005-05-29 10:29:10 EDT
got this exception wjen compiling.

java.lang.ClassCastException: org.aspectj.weaver.ResolvedMember
	at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:933)
	at
org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.weave(AjCompilerAdapter.java:244)
	at
org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.afterCompiling(AjCompilerAdapter.java:119)
	at
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:385)
	at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:683)
	at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:168)
	at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:102)
	at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:109)
	at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
	at org.aspectj.tools.ajc.Main.run(Main.java:291)
	at org.aspectj.tools.ajc.Main.runMain(Main.java:227)
	at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1195)
	at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:985)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
	at org.apache.tools.ant.Main.runBuild(Main.java:673)
	at org.apache.tools.ant.Main.startAnt(Main.java:188)
	at org.apache.tools.ant.Main.start(Main.java:151)
	at org.apache.tools.ant.Main.main(Main.java:241)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:13)

C:\work\Branches\SecureSphere_Jamaica\Dev\build.xml:608: fail due to
ClassCastException "org.aspectj.weaver.ResolvedMember""ABORT" (1 exceptions)
	at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1245)
	at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:985)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
	at org.apache.tools.ant.Main.runBuild(Main.java:673)
	at org.apache.tools.ant.Main.startAnt(Main.java:188)
	at org.apache.tools.ant.Main.start(Main.java:151)
	at org.apache.tools.ant.Main.main(Main.java:241)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:13)
C:\work\Branches\SecureSphere_Jamaica\Dev\build.xml:608: fail due to
ClassCastException "org.aspectj.weaver.ResolvedMember""ABORT" (1 exceptions)
	at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1245)
	at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:985)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
	at org.apache.tools.ant.Main.runBuild(Main.java:673)
	at org.apache.tools.ant.Main.startAnt(Main.java:188)
	at org.apache.tools.ant.Main.start(Main.java:151)
	at org.apache.tools.ant.Main.main(Main.java:241)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:13)
C:\work\Branches\SecureSphere_Jamaica\Dev\build.xml:608: fail due to
ClassCastException "org.aspectj.weaver.ResolvedMember""ABORT" (1 exceptions)
	at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1245)
	at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:985)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
	at org.apache.tools.ant.Main.runBuild(Main.java:673)
	at org.apache.tools.ant.Main.startAnt(Main.java:188)
	at org.apache.tools.ant.Main.start(Main.java:151)
	at org.apache.tools.ant.Main.main(Main.java:241)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:13)
Comment 1 Andrew Clement CLA 2005-05-31 04:16:29 EDT
Looking at this for M3 - any way you can include the code (or a subset of the
code?) that you were compiling when this error occurred.
Comment 2 Nitzan Volman CLA 2005-05-31 05:33:23 EDT
(In reply to comment #1)
> Looking at this for M3 - any way you can include the code (or a subset of the
> code?) that you were compiling when this error occurred.

including the code is impossible.
Is there a way to have to compiler emit more information that the regular 
verbose option - I might be able to help pin point the problem.
Comment 3 Andrew Clement CLA 2005-05-31 08:36:00 EDT
There is no option to get more information from the compiler (at the moment).
Normally the bug raiser would work with us to develop a small self contained
example program that demonstrates the failure that we can then take and debug. 
But in this case, I believe the bug is already fixed, please can you download
the latest dev build of AspectJ and try it:

http://eclipse.org/aspectj/downloads.php

Let me know if it works for you.
Comment 4 Andrew Clement CLA 2005-06-03 11:38:31 EDT
An even more recent dev build has just been uploaded, I believe this bug is fixed.