jscience
  1. jscience
  2. JSCIENCE-164

asType(Mass.class) does not work with string OUNCE.toString()

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Physics
    • Labels:
      None

      Description

      The following throws an exception when the variable unit has value OUNCE.toString()
      Unit<Mass> unit1 = Unit.valueOf(unit.subSequence(0, unit.length())).asType(Mass.class);

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            aarti100
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: