Commit 13aa5edf authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Use consistent exceptions in checkTypeRef.

parent 3f9be5ef
Pipeline #10688 passed with stage
in 8 minutes and 32 seconds
......@@ -943,9 +943,9 @@ public class CheckClassAdapter extends ClassVisitor {
mask = 0xFF0000FF;
break;
default:
throw new AssertionError();
break;
}
if ((typeRef & ~mask) != 0) {
if (mask == 0 || (typeRef & ~mask) != 0) {
throw new IllegalArgumentException(
"Invalid type reference 0x" + Integer.toHexString(typeRef));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment