Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 422539

Summary: AnnotationProcessor ASM doesn't support Java 1.8
Product: [RT] Jetty Reporter: Liang shen <dreamershl>
Component: serverAssignee: Jan Bartel <janb>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: janb, jetty-inbox
Version: 9.1.0   
Target Milestone: 9.1.x   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Liang shen CLA 2013-11-25 20:18:39 EST
AnnotationProcessor use ASM to analyse the class for the annotation. The version ASM 4.1 doesn't support Java 1.8. 
1. Should upgrade it to ASM5.0 for Java 1.8
2. Should have more clear error message than illegalargument exception


Code from ASM classreader:

 public ClassReader(final byte[] b, final int off, final int len) {
        this.b = b;
        // checks the class version
        if (readShort(off + 6) > Opcodes.V1_7) {
            throw new IllegalArgumentException();
        }
Comment 1 Jan Bartel CLA 2013-11-27 18:17:46 EST
Liang,

Thanks for the bug report, but we've already got one open for upgrading to asm-5. I'll progress that bug.

Jan

*** This bug has been marked as a duplicate of bug 419801 ***