ASM 5.0.4 and 5.1 doesn't support Java 5 bytecode fully (ArrayArrayIndexOutOfBoundsException: 2304)
I'm trying to parse the given bytecode (see an attachment) with ASM 5.0.4 or
5.1.
I use the following code:
ClassNode node = new ClassNode();
new ClassReader(getFilePath("RegexUtil.class"))).accept(node, 0);
System.out.println(node.name);
The following exception is thrown (see an attachment)
java.lang.ArrayIndexOutOfBoundsException: 2304
I have used "javap" to determine the JDK version. It is 1.5.
I then have tried to use "asm:asm-all:3.3.1" (instead of "org.ow2.asm:asm-
all:5.1") and it helped!
Unfortunately I have to parse the JDK 8 bytecode too, so I can't just use the
old version.
Sorry for duplicate if I have overlooked.
I also might have mixed up the Component/s