ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [20/34] incubator-ignite git commit: ignite-754: bug fixed
Date Fri, 17 Apr 2015 11:31:40 GMT
ignite-754: bug fixed


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/f6a08642
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/f6a08642
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/f6a08642

Branch: refs/heads/ignite-758
Commit: f6a08642a390c46ef69432125790ec2ab3acd8d9
Parents: 0071386
Author: Denis Magda <dmagda@gridgain.com>
Authored: Thu Apr 16 14:45:32 2015 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Thu Apr 16 14:45:32 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/managers/discovery/GridDiscoveryManager.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f6a08642/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
index ff41952..27f62b2 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
@@ -800,7 +800,7 @@ public class GridDiscoveryManager extends GridManagerAdapter<DiscoverySpi>
{
      */
     private int nodeJavaMajorVer(ClusterNode node) throws IgniteCheckedException {
         try {
-            return Integer.parseInt(node.<String>attribute("java.version").split(".")[1]);
+            return Integer.parseInt(node.<String>attribute("java.version").split("\\.")[1]);
         }
         catch (Exception e) {
             throw new IgniteCheckedException("Failed to get java major version with reason:
" + e.getMessage());


Mime
View raw message