[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

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





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