DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32133>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32133

SystemUtils fails init on HP-UX

           Summary: SystemUtils fails init on HP-UX
           Product: Commons
           Version: 2.0 Final
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to