ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gin...@apache.org
Subject ant-ivy git commit: Use java.specification.version rather than java.version
Date Mon, 05 Feb 2018 12:25:44 GMT
Repository: ant-ivy
Updated Branches:
  refs/heads/master 994fff7f6 -> 9003b5b5a


Use java.specification.version rather than java.version

Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/9003b5b5
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/9003b5b5
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/9003b5b5

Branch: refs/heads/master
Commit: 9003b5b5aa4465e84c934819f45c1ab4365dc51c
Parents: 994fff7
Author: Gintas Grigelionis <gintas@apache.org>
Authored: Mon Feb 5 13:25:54 2018 +0100
Committer: Gintas Grigelionis <gintas@apache.org>
Committed: Mon Feb 5 13:25:54 2018 +0100

----------------------------------------------------------------------
 src/java/org/apache/ivy/util/url/IvyAuthenticator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/9003b5b5/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/util/url/IvyAuthenticator.java b/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
index c29d694..8774c7f 100644
--- a/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
+++ b/src/java/org/apache/ivy/util/url/IvyAuthenticator.java
@@ -144,7 +144,7 @@ public final class IvyAuthenticator extends Authenticator {
 
     private static int getJavaVersion() {
         // See https://docs.oracle.com/javase/8/docs/technotes/guides/versioning/spec/versioning2.html#wp90002
-        final String[] version = System.getProperty("java.version").split("\\.");
+        final String[] version = System.getProperty("java.specification.version").split("\\.");
         final int major = Integer.parseInt(version[0]);
         return major == 1 ? Integer.parseInt(version[1]) : major;
     }


Mime
View raw message