[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Compilation Error in AJDT

I think in order for this to work you have to force a clean/refresh cycle in Eclipse to get this to go away.  I had a hard time making this occur one time as well.  I think I did a clean, shut down Eclipse and re-started it, then re-built and it worked fine then.  It was a pain though!
 
Ron

________________________________

From: aspectj-users-bounces@xxxxxxxxxxx on behalf of Andy Clement
Sent: Mon 11/14/2005 2:52 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] Compilation Error in AJDT



This error:

BCException: weird kind -19

always means you are asking one version of AspectJ to process code
built with another version.  We only guarantee binary compatibility
between 1.2/1.2.1 and 1.5.0 - not between dev builds of 1.5.0 - so you
need to get the two versions you are using in step somehow.  Make sure
you have the very latest AJDT installed in your Eclipse as I don't
think any changes to the serialized form of aspects have occurred
since that was created - that should match up with the AJDT source
projects you have checked out.

Andy.

On 14/11/05, Irum Godil <softwarengineer2004@xxxxxxxxx> wrote:
> Hi,
> I have a AJDT 1_2 dev plugin set up. I converted my existing Java project
> into an AspectJ project, and I am getting the following errors. The reason I
> am using the dev plugin and not the release is that I also want to use the
> AJDT source projects in the same workspace as my new project. I have closed
> all the AJDT projects in the workspace and still get this error. I will
> really appreciate any help.
>
> Thanks.
>
> Severity Description Resource In Folder Location Creation
> Time
> 2 Internal compiler error
> org.aspectj.weaver.BCException: weird kind -19
> when weaving intertype declarations FieldBinding
> when processing compilation unit
> C:\eclipse-SDK-3.0.1-win32Refnov11\eclipse\workspace\refactoringProject\src\ccInput\CrosscuttingCollection.java
> when batch building
> BuildConfig[C:\eclipse-SDK-3.0.1-win32Refnov11\eclipse\workspace\.metadata\.plugins\org.eclipse.ajdt.core\refactoringProject.generated.lst]
> #Files=27
>  at org.aspectj.weaver.Member$Kind.read(Member.java:39)
>  at
> org.aspectj.weaver.ResolvedMemberImpl.readResolvedMember(ResolvedMemberImpl.java:401)
>  at
> org.aspectj.weaver.ResolvedTypeMunger.readSuperMethodsCalled(ResolvedTypeMunger.java:151)
>  at
> org.aspectj.weaver.NewMethodTypeMunger.readMethod(NewMethodTypeMunger.java:73)
>  at
> org.aspectj.weaver.ResolvedTypeMunger.read(ResolvedTypeMunger.java:133)
>  at
> org.aspectj.weaver.WeaverStateInfo.read(WeaverStateInfo.java:134)
>  at
> org.aspectj.weaver.AjAttribute.read(AjAttribute.java:97)
>  at
> org.aspectj.weaver.bcel.BcelAttributes.readAjAttributes(BcelAttributes.java:59)
>  at
> org.aspectj.weaver.bcel.BcelObjectType.unpackAspectAttributes(BcelObjectType.java:270)
>  at
> org.aspectj.weaver.bcel.BcelObjectType.<init>(BcelObjectType.java:131)
>  at
> org.aspectj.weaver.bcel.BcelWorld.makeBcelObjectType(BcelWorld.java:255)
>  at
> org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:250)
>  at
> org.aspectj.weaver.World.resolveToReferenceType(World.java:296)
>  at org.aspectj.weaver.World.resolve(World.java:213)
>  at org.aspectj.weaver.World.resolve(World.java:134)
>  at
> org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fromEclipse(EclipseFactory.java:129)
>  at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:493)
>  at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:483)
>  at
> org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.createBinaryTypeFrom(AjLookupEnvironment.java:912)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:480)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:190)
>   at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:111)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:43)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:53)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:167)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findImport(CompilationUnitScope.java:413)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findSingleImport(CompilationUnitScope.java:466)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInImports(CompilationUnitScope.java:331)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:400)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:507)
>  at
> org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:329)
>  at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:799)
>  at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:229)
>  at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:155)
>  at
> org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:122)
>  at
> org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)
>  CrosscuttingCollection.java refactoringProject/src/ccInput
>  November 14, 2005 12:39:10 PM
>
>
>
>
>
> Thanks a lot,
> Sincerely,
> Irum Godil.
> www.cs.utoronto.ca/~irum
>
>
>  ________________________________
>  Yahoo! FareChase - Search multiple travel sites in one click.
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users