polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [5/9] polygene-java git commit: [Fragment|Transient]ClassLoaders only supports JDK_8 opcodes
Date Mon, 10 Apr 2017 11:54:45 GMT
[Fragment|Transient]ClassLoaders only supports JDK_8 opcodes

We don’t support JDK 7
Before this commit we were generating JDK_7 opcodes even when running on a JDK >=8


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/1cf686ca
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/1cf686ca
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/1cf686ca

Branch: refs/heads/develop
Commit: 1cf686ca60e92458d77eb3b7ed946c0626d63859
Parents: 40d8d6d
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon Apr 10 12:47:34 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Mon Apr 10 12:47:34 2017 +0200

----------------------------------------------------------------------
 .../polygene/runtime/composite/FragmentClassLoader.java  | 11 ++++-------
 .../polygene/runtime/composite/TransientClassLoader.java | 11 ++++-------
 2 files changed, 8 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/1cf686ca/core/runtime/src/main/java/org/apache/polygene/runtime/composite/FragmentClassLoader.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/composite/FragmentClassLoader.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/composite/FragmentClassLoader.java
index 2603d99..5f56595 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/composite/FragmentClassLoader.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/composite/FragmentClassLoader.java
@@ -92,13 +92,10 @@ public class FragmentClassLoader
         String jdkString = System.getProperty( "java.specification.version" );
         switch( jdkString )
         {
-        case "1.8":
-            JDK_VERSION = Opcodes.V1_8;
-            break;
-        case "1.7":
-        default:
-            JDK_VERSION = Opcodes.V1_7;
-            break;
+            case "1.8":
+            default:
+                JDK_VERSION = Opcodes.V1_8;
+                break;
         }
     }
 

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/1cf686ca/core/runtime/src/main/java/org/apache/polygene/runtime/composite/TransientClassLoader.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/composite/TransientClassLoader.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/composite/TransientClassLoader.java
index 68c4fe3..7e20a0e 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/composite/TransientClassLoader.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/composite/TransientClassLoader.java
@@ -91,13 +91,10 @@ import static org.objectweb.asm.Type.getInternalName;
         String jdkString = System.getProperty( "java.specification.version" );
         switch( jdkString )
         {
-        case "1.8":
-            JDK_VERSION = Opcodes.V1_8;
-            break;
-        case "1.7":
-        default:
-            JDK_VERSION = Opcodes.V1_7;
-            break;
+            case "1.8":
+            default:
+                JDK_VERSION = Opcodes.V1_8;
+                break;
         }
     }
 


Mime
View raw message