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

Commit

Permalink
Merge pull request #12 from retronym/ticket/java9
Browse files Browse the repository at this point in the history
Support Java 9 bytecode format
  • Loading branch information
lrytz committed Feb 16, 2017
2 parents dd1ca88 + ccbe1ca commit 51ec7ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 51ec7ee

Please sign in to comment.