Bug 510978

Summary: AspectJ 1.8 not able to compilation error but 1.7 works well
Product: [Tools] AspectJ Reporter: Luan Cestari <luan.cestari>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3    
Version: 1.8.10   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
ajcore.20170124.141616.423.txt none

Description Luan Cestari CLA 2017-01-24 11:55:05 EST
Created attachment 266442 [details]
ajcore.20170124.141616.423.txt

I was trying to use Java 8 + AspectJ 1.8.10 on a project which works fine with Java 7 + 1.7.4 and it the new AspectJ throws an exception with this message:

:infrastructure:compileAspect
[ant:iajc] <Unknown> [warning] Found @DeclareAnnotation while current release does not support it (see 'org.aspectj.weaver.bcel.AtAjAttributes')
[ant:iajc] 	
[ant:iajc] ABORT
[ant:iajc] 	
[ant:iajc] Exception thrown from AspectJ 1.8.10
[ant:iajc] 
[ant:iajc] This might be logged as a bug already -- find current bugs at
[ant:iajc]   http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component=Compiler
[ant:iajc] 
[ant:iajc] Bugs for exceptions thrown have titles File:line from the top stack, 
[ant:iajc] e.g., "SomeFile.java:243"
[ant:iajc] 
[ant:iajc] If you don't find the exception below in a bug, please add a new bug
[ant:iajc] at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
[ant:iajc] To make the bug a priority, please include a test program
[ant:iajc] that can reproduce this exception.
[ant:iajc] org/aspectj/org/eclipse/jdt/internal/compiler/parser/UpdateParserFiles.class is not a Java .class file
[ant:iajc] 
[ant:iajc] when batch building BuildConfig[null] #Files=138 AopXmls=#0
[ant:iajc] org/aspectj/org/eclipse/jdt/internal/compiler/parser/UpdateParserFiles.class is not a Java .class file
[ant:iajc] org.aspectj.apache.bcel.classfile.ClassFormatException: org/aspectj/org/eclipse/jdt/internal/compiler/parser/UpdateParserFiles.class is not a Java .class file
[ant:iajc] 	at org.aspectj.apache.bcel.classfile.ClassParser.readID(ClassParser.java:215)
[ant:iajc] 	at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:124)
[ant:iajc] 	at org.aspectj.weaver.bcel.BcelWeaver.addAspectsFromJarFile(BcelWeaver.java:263)
[ant:iajc] 	at org.aspectj.weaver.bcel.BcelWeaver.addLibraryJarFile(BcelWeaver.java:239)
[ant:iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:874)
[ant:iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:249)
[ant:iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:185)
[ant:iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:114)
[ant:iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
[ant:iajc] 	at org.aspectj.tools.ajc.Main.run(Main.java:371)
[ant:iajc] 	at org.aspectj.tools.ajc.Main.runMain(Main.java:248)
[ant:iajc] 	at org.aspectj.tools.ajc.Main.main(Main.java:84)
[ant:iajc] 
[ant:iajc] Jan 24, 2017 2:52:42 PM org.aspectj.weaver.tools.Jdk14Trace info
[ant:iajc] INFO: Dumping to /home/lcestari/repositories/theirs/cubus-core/customer-business-service/infrastructure/./ajcore.20170124.145242.384.txt
[ant:iajc] 
[ant:iajc] 1 fail|abort, 1 warning
:infrastructure:compileAspect FAILED