Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
-
None
-
Operating System: HP-UX
Platform: HP
-
32133
Description
The system property for java.version is returned in HP-UX as JavaVM-1.3.0.01
rather than the standard 1.3.0.01. This causes the following Exception to be
thrown in SystemUtils:
java.lang.NumberFormatException: JavV
at java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Float.parseFloat(Unknown Source)
at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat
(SystemUtils.java:756)
at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:469)
The class should be modified to check if the VM is a valid number before
peforming the parseFloat() operation.