Skip to content
This repository was archived by the owner on Feb 23, 2018. It is now read-only.

Support Java 9 bytecode format #12

Merged
merged 1 commit into from
Feb 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/scala/tools/asm/ClassReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public ClassReader(final byte[] b) {
public ClassReader(final byte[] b, final int off, final int len) {
this.b = b;
// checks the class version
if (readShort(off + 6) > Opcodes.V1_8) {
if (readShort(off + 6) > Opcodes.V1_9) {
throw new IllegalArgumentException();
}
// parses the constant pool
Expand Down
1 change: 1 addition & 0 deletions src/main/java/scala/tools/asm/Opcodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public interface Opcodes {
int V1_6 = 0 << 16 | 50;
int V1_7 = 0 << 16 | 51;
int V1_8 = 0 << 16 | 52;
int V1_9 = 0 << 16 | 53;

// access flags

Expand Down