From b4542a031b1873f91f5f75a5b2147913191b4f1a Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Fri, 25 Apr 2014 16:34:14 +0200 Subject: [PATCH] 433512 Jetty throws RuntimeException when webapp compiled with jdk8 -parameters --- .../org/eclipse/jetty/annotations/AnnotationParser.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java index 5587c2fd6d5..e34d8a5c0e9 100644 --- a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java +++ b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java @@ -373,7 +373,7 @@ public class AnnotationParser final String signature, final String[] exceptions) { - super(Opcodes.ASM4); + super(Opcodes.ASM5); _handlers = handlers; _mi = new MethodInfo(classInfo, name, access, methodDesc,signature, exceptions); } @@ -417,7 +417,7 @@ public class AnnotationParser final String signature, final Object value) { - super(Opcodes.ASM4); + super(Opcodes.ASM5); _handlers = handlers; _fieldInfo = new FieldInfo(classInfo, fieldName, access, fieldType, signature, value); } @@ -456,7 +456,7 @@ public class AnnotationParser public MyClassVisitor(Set handlers, Resource containingResource) { - super(Opcodes.ASM4); + super(Opcodes.ASM5); _handlers = handlers; _containingResource = containingResource; } @@ -702,6 +702,7 @@ public class AnnotationParser } catch (Exception ex) { + if (LOG.isDebugEnabled()) LOG.debug("Error scanning file "+files[f], ex); me.add(new RuntimeException("Error scanning file "+files[f],ex)); } }