YutSean commented on a change in pull request #3784:
URL: https://github.com/apache/hbase/pull/3784#discussion_r736105791



##########
File path: hbase-common/src/main/java/org/apache/hadoop/hbase/util/JVM.java
##########
@@ -60,6 +60,9 @@
 
   private static final String JVMVersion = System.getProperty("java.version");
 
+  private static final Float JREVersion =
+    Float.parseFloat(System.getProperty("java.specification.version"));

Review comment:
       If the java is 7 or 8, the String will be "1.7" or "1.8". In this case, 
if we parse it to Integer, it will raise an exception.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@hbase.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to