-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
DefaultFormat.check()
appears to misuse a MeasurementParseException
constructor, by building a message string but treating it as the parsedData
.
I'm assuming that something more like the following is desired:
throw new MeasurementParseException(message, csq, index);
I'm currently working around this by checking for MeasurementParseException
s with the message "Parse Error"
and taking the message from getParsedString()
instead.
It's easily reproduced by attempting to parse an arbitrary unrecognised text string e.g.:
SimpleUnitFormat.getInstance().parse("invalid");
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
👀 In review