| Summary: | AnnotationProcessor ASM doesn't support Java 1.8 | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Liang shen <dreamershl> |
| Component: | server | Assignee: | 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: | |||
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 *** |
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(); }