433512 Jetty throws RuntimeException when webapp compiled with jdk8 -parameters

This commit is contained in:
Jan Bartel 2014-04-25 16:34:14 +02:00
parent 1fb578165f
commit b4542a031b
1 changed files with 4 additions and 3 deletions

View File

@ -373,7 +373,7 @@ public class AnnotationParser
final String signature, final String signature,
final String[] exceptions) final String[] exceptions)
{ {
super(Opcodes.ASM4); super(Opcodes.ASM5);
_handlers = handlers; _handlers = handlers;
_mi = new MethodInfo(classInfo, name, access, methodDesc,signature, exceptions); _mi = new MethodInfo(classInfo, name, access, methodDesc,signature, exceptions);
} }
@ -417,7 +417,7 @@ public class AnnotationParser
final String signature, final String signature,
final Object value) final Object value)
{ {
super(Opcodes.ASM4); super(Opcodes.ASM5);
_handlers = handlers; _handlers = handlers;
_fieldInfo = new FieldInfo(classInfo, fieldName, access, fieldType, signature, value); _fieldInfo = new FieldInfo(classInfo, fieldName, access, fieldType, signature, value);
} }
@ -456,7 +456,7 @@ public class AnnotationParser
public MyClassVisitor(Set<? extends Handler> handlers, Resource containingResource) public MyClassVisitor(Set<? extends Handler> handlers, Resource containingResource)
{ {
super(Opcodes.ASM4); super(Opcodes.ASM5);
_handlers = handlers; _handlers = handlers;
_containingResource = containingResource; _containingResource = containingResource;
} }
@ -702,6 +702,7 @@ public class AnnotationParser
} }
catch (Exception ex) catch (Exception ex)
{ {
if (LOG.isDebugEnabled()) LOG.debug("Error scanning file "+files[f], ex);
me.add(new RuntimeException("Error scanning file "+files[f],ex)); me.add(new RuntimeException("Error scanning file "+files[f],ex));
} }
} }