Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » compiler error
compiler error [message #66118] Thu, 06 July 2006 16:41 Go to next message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
I get the below error when I attempt to convert one of my projects to
the aspectj nature. I've tried to simplify down to a simple example, but
even if I comment out the entire class UserTest as shown below, I still
get the error. Any tips on how to further investigate would be
appreciated. (This is using the 1.4.0.20060629124300 build.)

thanks!

----

public class UserTest { //extends ServerIntegrationTestCase {
// the entire class commented out including the imports
}

----

Severity and Description Path Resource Location Creation
Time Id
Internal compiler error
java.lang.ClassCastException:
org.aspectj.apache.bcel.classfile.Signature$TypeVariableSign ature
at
org.aspectj.weaver.UnresolvedType.forGenericTypeSignature(Un resolvedType.java:349)
at org.aspectj.weaver.World.makeGenericTypeFrom(World.java:416)
at org.aspectj.weaver.World.resolveToReferenceType(World.java:3 57)
at org.aspectj.weaver.World.resolve(World.java:265)
at org.aspectj.weaver.World.resolveGenericTypeFor(World.java:38 0)
at org.aspectj.weaver.World.resolveToReferenceType(World.java:3 38)
at org.aspectj.weaver.World.resolve(World.java:265)
at org.aspectj.weaver.World.resolve(World.java:185)
at
org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fro mEclipse(EclipseFactory.java:137)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:529)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:519)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.createBinaryTypeFrom(AjLookupEnvironment.java:1058)
at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupE nvironment.createBinaryTypeFrom(LookupEnvironment.java:480)
at
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.accep t(Compiler.java:190)
at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupE nvironment.askForType(LookupEnvironment.java:137)
at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Package Binding.getTypeOrPackage(PackageBinding.java:178)
at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.findImport(CompilationUnitScope.java:413)
at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.findSingleImport(CompilationUnitScope.java:466 )
at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.faultInImports(CompilationUnitScope.java:331)
at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.faultInTypes(CompilationUnitScope.java:400)
at
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.proce ss(Compiler.java:512)
at
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compi le(Compiler.java:329)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.perfor mCompilation(AjBuildManager.java:887)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:244)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchB uild(AjBuildManager.java:163)
at
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:122)
at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:191)
ot_domain-core/src/test/java/org/opentrader/domain/security
UserTest.java Unknown 1152203789812 289348
Re: compiler error [message #66142 is a reply to message #66118] Thu, 06 July 2006 17:20 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
If you search bugzilla for your error, you will this as bug 148409
https://bugs.eclipse.org/bugs/show_bug.cgi?id=148409

which I fixed earlier today (as seen in the bug report).

Andy.

Barry Kaplan wrote:
> I get the below error when I attempt to convert one of my projects to
> the aspectj nature. I've tried to simplify down to a simple example, but
> even if I comment out the entire class UserTest as shown below, I still
> get the error. Any tips on how to further investigate would be
> appreciated. (This is using the 1.4.0.20060629124300 build.)
>
> thanks!
>
> ----
>
> public class UserTest { //extends ServerIntegrationTestCase {
> // the entire class commented out including the imports
> }
>
> ----
>
> Severity and Description Path Resource Location Creation
> Time Id
> Internal compiler error
> java.lang.ClassCastException:
> org.aspectj.apache.bcel.classfile.Signature$TypeVariableSign ature
> at
> org.aspectj.weaver.UnresolvedType.forGenericTypeSignature(Un resolvedType.java:349)
>
> at org.aspectj.weaver.World.makeGenericTypeFrom(World.java:416)
> at org.aspectj.weaver.World.resolveToReferenceType(World.java:3 57)
> at org.aspectj.weaver.World.resolve(World.java:265)
> at org.aspectj.weaver.World.resolveGenericTypeFor(World.java:38 0)
> at org.aspectj.weaver.World.resolveToReferenceType(World.java:3 38)
> at org.aspectj.weaver.World.resolve(World.java:265)
> at org.aspectj.weaver.World.resolve(World.java:185)
> at
> org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fro mEclipse(EclipseFactory.java:137)
>
> at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:529)
>
> at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:519)
>
> at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.createBinaryTypeFrom(AjLookupEnvironment.java:1058)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupE nvironment.createBinaryTypeFrom(LookupEnvironment.java:480)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.accep t(Compiler.java:190)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupE nvironment.askForType(LookupEnvironment.java:137)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Package Binding.getTypeOrPackage(PackageBinding.java:178)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.findImport(CompilationUnitScope.java:413)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.findSingleImport(CompilationUnitScope.java:466 )
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.faultInImports(CompilationUnitScope.java:331)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.faultInTypes(CompilationUnitScope.java:400)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.proce ss(Compiler.java:512)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compi le(Compiler.java:329)
>
> at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.perfor mCompilation(AjBuildManager.java:887)
>
> at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:244)
>
> at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchB uild(AjBuildManager.java:163)
>
> at
> org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:122)
> at
> org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:191)
>
> ot_domain-core/src/test/java/org/opentrader/domain/security
> UserTest.java Unknown 1152203789812 289348
Re: compiler error [message #594319 is a reply to message #66118] Thu, 06 July 2006 17:20 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
If you search bugzilla for your error, you will this as bug 148409
https://bugs.eclipse.org/bugs/show_bug.cgi?id=148409

which I fixed earlier today (as seen in the bug report).

Andy.

Barry Kaplan wrote:
> I get the below error when I attempt to convert one of my projects to
> the aspectj nature. I've tried to simplify down to a simple example, but
> even if I comment out the entire class UserTest as shown below, I still
> get the error. Any tips on how to further investigate would be
> appreciated. (This is using the 1.4.0.20060629124300 build.)
>
> thanks!
>
> ----
>
> public class UserTest { //extends ServerIntegrationTestCase {
> // the entire class commented out including the imports
> }
>
> ----
>
> Severity and Description Path Resource Location Creation
> Time Id
> Internal compiler error
> java.lang.ClassCastException:
> org.aspectj.apache.bcel.classfile.Signature$TypeVariableSign ature
> at
> org.aspectj.weaver.UnresolvedType.forGenericTypeSignature(Un resolvedType.java:349)
>
> at org.aspectj.weaver.World.makeGenericTypeFrom(World.java:416)
> at org.aspectj.weaver.World.resolveToReferenceType(World.java:3 57)
> at org.aspectj.weaver.World.resolve(World.java:265)
> at org.aspectj.weaver.World.resolveGenericTypeFor(World.java:38 0)
> at org.aspectj.weaver.World.resolveToReferenceType(World.java:3 38)
> at org.aspectj.weaver.World.resolve(World.java:265)
> at org.aspectj.weaver.World.resolve(World.java:185)
> at
> org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fro mEclipse(EclipseFactory.java:137)
>
> at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:529)
>
> at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:519)
>
> at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.createBinaryTypeFrom(AjLookupEnvironment.java:1058)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupE nvironment.createBinaryTypeFrom(LookupEnvironment.java:480)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.accep t(Compiler.java:190)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupE nvironment.askForType(LookupEnvironment.java:137)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Package Binding.getTypeOrPackage(PackageBinding.java:178)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.findImport(CompilationUnitScope.java:413)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.findSingleImport(CompilationUnitScope.java:466 )
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.faultInImports(CompilationUnitScope.java:331)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.faultInTypes(CompilationUnitScope.java:400)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.proce ss(Compiler.java:512)
>
> at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compi le(Compiler.java:329)
>
> at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.perfor mCompilation(AjBuildManager.java:887)
>
> at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:244)
>
> at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchB uild(AjBuildManager.java:163)
>
> at
> org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:122)
> at
> org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:191)
>
> ot_domain-core/src/test/java/org/opentrader/domain/security
> UserTest.java Unknown 1152203789812 289348
Previous Topic:compiler error
Next Topic:VerifyError When Running with JUnit
Goto Forum:
  


Current Time: Thu Nov 14 08:00:50 GMT 2024

Powered by FUDForum. Page generated in 0.03719 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top