openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject [openjpa] 01/05: detect newer java versions as well
Date Thu, 23 Jul 2020 12:07:25 GMT
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit 589d7755d2711198d7f38fd79d14e61b778a2118
Author: Mark Struberg <struberg@apache.org>
AuthorDate: Thu Jul 23 13:47:27 2020 +0200

    detect newer java versions as well
---
 .../src/main/java/org/apache/openjpa/lib/util/JavaVersions.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java b/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java
index 9963ebb..ae402e5 100644
--- a/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java
+++ b/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/JavaVersions.java
@@ -53,8 +53,12 @@ public class JavaVersions {
             VERSION = 5;
         else if ("1.6".equals(specVersion))
             VERSION = 6;
+        else if ("1.7".equals(specVersion))
+            VERSION = 7;
+        else if ("1.8".equals(specVersion))
+            VERSION = 8;
         else
-            VERSION = 7; // maybe someday...
+            VERSION = 9; // maybe someday...
     }
 
     /**


Mime
View raw message