Issue Details (XML | Word | Printable)

Key: JSCIENCE-33
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: jscience-issues
Reporter: lmetzger3969
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jscience

StandardInstance of UnitFormat fails on some String->Unit conversions

Created: 20/Jun/06 11:36 AM   Updated: 31/Jan/11 02:52 AM   Resolved: 02/Oct/07 09:27 PM
Component/s: www
Affects Version/s: current
Fix Version/s: Version 6.0

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All


Issuezilla Id: 33
Tags:
Participants: dautelle, jscience-issues and lmetzger3969


 Description  « Hide

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)



dautelle added a comment - 02/Oct/07 09:27 PM

Fixed (GALILEO and AEON have been deleted).


kenaiadmin made changes - 06/Jan/11 12:08 PM
Field Original Value New Value
issue.field.bugzillaimportkey 33 63192
dautelle made changes - 31/Jan/11 02:52 AM
Fix Version/s Version 6.0 [ 14597 ]
Fix Version/s milestone 1 [ 12327 ]