Added support for Java 8

This commit is contained in:
JKetelaar
2014-12-10 18:07:03 +01:00
parent 32e89b8615
commit 47d71951a1
@@ -1202,7 +1202,7 @@ public class CheckMethodAdapter extends MethodVisitor {
checkIdentifier(name, begin, slash, null); checkIdentifier(name, begin, slash, null);
begin = slash + 1; begin = slash + 1;
} while (slash != max); } while (slash != max);
} catch (IllegalArgumentException _) { } catch (IllegalArgumentException ignored) {
throw new IllegalArgumentException( throw new IllegalArgumentException(
"Invalid " "Invalid "
+ msg + msg
@@ -1280,7 +1280,7 @@ public class CheckMethodAdapter extends MethodVisitor {
} }
try { try {
checkInternalName(desc, start + 1, index, null); checkInternalName(desc, start + 1, index, null);
} catch (IllegalArgumentException _) { } catch (IllegalArgumentException ignored) {
throw new IllegalArgumentException("Invalid descriptor: " throw new IllegalArgumentException("Invalid descriptor: "
+ desc); + desc);
} }