decompiler: support java 9 bytecode version
authorEgor.Ushakov <egor.ushakov@jetbrains.com>
Mon, 29 Feb 2016 12:31:12 +0000 (15:31 +0300)
committerEgor.Ushakov <egor.ushakov@jetbrains.com>
Mon, 29 Feb 2016 13:22:42 +0000 (16:22 +0300)
plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/code/CodeConstants.java
plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/struct/StructClass.java

index 18d1ddbdbf89726bfa7202a826c8c1b068a8ccce..7718ac31625928b4299a07f1d9d54ef0d54319df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2015 JetBrains s.r.o.
+ * Copyright 2000-2016 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ public interface CodeConstants {
   int BYTECODE_JAVA_6 = 3;
   int BYTECODE_JAVA_7 = 4;
   int BYTECODE_JAVA_8 = 5;
+  int BYTECODE_JAVA_9 = 6;
 
   // ----------------------------------------------------------------------
   // VARIABLE TYPES
index cb24ff65db631feeb2206ddf0fe18244eabdc788..895e4c13deba5fa3fe62ce99cfbd414b414905e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2014 JetBrains s.r.o.
+ * Copyright 2000-2016 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -180,6 +180,8 @@ public class StructClass extends StructMember {
 
   public int getBytecodeVersion() {
     switch (majorVersion) {
+      case 53:
+        return CodeConstants.BYTECODE_JAVA_9;
       case 52:
         return CodeConstants.BYTECODE_JAVA_8;
       case 51: