commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32133] New: - SystemUtils fails init on HP-UX
Date Tue, 09 Nov 2004 21:50:36 GMT
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: commons-dev@jakarta.apache.org
        ReportedBy: gritmaj@wyeth.com


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message