Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-43

[lang] SystemUtils fails init on HP-UX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gritmaj@wyeth.com Jason Gritman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: