jscience
  1. jscience
  2. JSCIENCE-33

StandardInstance of UnitFormat fails on some String->Unit conversions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: Version 6.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      33

      Description

      When converting from a String to a Unit using the StandardInstance of
      UnitFormat, the conversion fails for the following Units

      javax.units.NonSI.GALILEO
      javax.units.NonSI.AEON

      examples:
      Unit.valueOf(NonSI.GALILEO.toString());
      Unit.valueOf(NonSI.AEON.toString());

      Errors:
      java.lang.IllegalArgumentException: [m not recognized (in [m/s²*1/100] at index 0)
      java.lang.IllegalArgumentException: [s not recognized (in [s*3.1556952E16] at
      index 0)

        Activity

        lmetzger3969 created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 33 63192
        dautelle made changes -
        Fix Version/s Version 6.0 [ 14597 ]
        Fix Version/s milestone 1 [ 12327 ]

          People

          • Assignee:
            jscience-issues
            Reporter:
            lmetzger3969
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: