Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ 5 now supports full source compilation of Java 5 programs

Thanks for the fast response (both of them). I'll try
to find a workaround using ajc to weave only.

Anyway I wouldn't like to be in the skin of those
bugs. Obviously they have a pretty short life
expectance..


 --- Adrian Colyer <adrian_colyer@xxxxxxxxxx>
escribió: 
> Regrettably I very much doubt you are doing anything
> wrong! We're still 
> uncovering a good number of bugs in source code
> compilation of annotations 
> and annotation pointcuts (the test cases we had for
> M1 all covered binary 
> weaving since that's all we could do). Andy and I
> are working on getting 
> much better test coverage and fixing as many of
> these problems as we can 
> before M2 (the dev build should be considered <
> milestone release quality 
> in the new feature areas, but should be pretty good
> at both straight Java 
> 5 compilation, and compilation of programs using
> AspectJ 1.2.1 features). 
> In areas such as the one you are hitting (annotating
> aspects) things are 
> still pretty new.... please submit a bug report and
> we'll be on the case!
> 
> -- Adrian
> Adrian_Colyer@xxxxxxxxxx
> 
> 
> 
> Pepe Iborra <pepegg@xxxxxxxxx> 
> Sent by: aspectj-users-admin@xxxxxxxxxxx
> 21/01/2005 14:14
> Please respond to
> aspectj-users@xxxxxxxxxxx
> 
> 
> To
> aspectj-users@xxxxxxxxxxx
> cc
> 
> Subject
> Re: [aspectj-users] AspectJ 5 now supports full
> source compilation of Java 
> 5 programs
> 
> 
> 
> 
> 
> 
> Adrian,
> 
> A simple change to SimpleAspect.aj will produce bad
> bad results:
> 
> import java.lang.annotation.Inherited;
> .
> .
> .
> .
> @Inherited
> @interface MyAnnotation {}
> 
> 
> That is, I have added the Inherited attribute to
> MyAnnotation. Trying to compile the modified version
> produces some nasty exceptions, see below. Am I
> doing
> anything wrong? I really hope it is my fault, as I
> would love to get my AspectJ 5 code working this
> very
> evening.
> 
> The full console output:
> 
> E:\DEV\aspectj1.5\bin>ajc -1.5
> ..\example\simpleaspect.aj -cp ..\lib\aspectjrt.jar
> E:\DEV\aspectj1.5\example\SimpleAspect.aj [error]
> Internal compiler error
> java.lang.NullPointerException
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.getAnnotationTagBits(SourceTypeBinding
> .java:643)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.resolveType(Annotation.java:260)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations(ASTNode.java:398)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.getAnnotationTagBits(SourceTypeBinding
> .java:644)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.resolveType(Annotation.java:260)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations(ASTNode.java:398)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:940)
>         at
>
org.aspectj.ajdt.internal.compiler.ast.AspectDeclaration.resolve(AspectDeclaration.java:79)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1075)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclarati
> on.java:280)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:546)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:365)
>         at
>
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:682)
>         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.ajc.Main.main(Main.java:80)
> 
> (no source information available)
> ABORT
> 
> Exception thrown from AspectJ DEVELOPMENT
> 
> This might be logged as a bug already -- find
> current
> bugs at
>  
>
http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component=Compiler
> 
> 
> Bugs for exceptions thrown have titles File:line
> from
> the top stack,
> e.g., "SomeFile.java:243"
> 
> If you don't find the exception below in a bug,
> please
> add a new bug
> at
>
http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
> To make the bug a priority, please include a test
> program
> that can reproduce this exception.
> null
> java.lang.NullPointerException
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.getAnnotationTagBits(SourceTypeBinding
> .java:643)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.resolveType(Annotation.java:260)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations(ASTNode.java:398)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.getAnnotationTagBits(SourceTypeBinding
> .java:644)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.resolveType(Annotation.java:260)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations(ASTNode.java:398)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:940)
>         at
>
org.aspectj.ajdt.internal.compiler.ast.AspectDeclaration.resolve(AspectDeclaration.java:79)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1075)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclarati
> on.java:280)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:546)
>         at
>
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:365)
>         at
>
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:682)
>         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.ajc.Main.main(Main.java:80)
> 
> Dumping to ajcore.20050121.150443.660.txt
> 
> 1 fail|abort, 1 error
> 
> 
> 
> 
> 
>  
> 
=== message truncated === 


		
______________________________________________ 
Renovamos el Correo Yahoo!: ¡250 MB GRATIS! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es


Back to the top