-
-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
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 MeasurementParseExceptions 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");
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done