Skip to content

LongInterval does not catch NumberFormatException#2

Open
emopers wants to merge 1 commit intoCue:masterfrom
emopers:Long_BadParsing_43
Open

LongInterval does not catch NumberFormatException#2
emopers wants to merge 1 commit intoCue:masterfrom
emopers:Long_BadParsing_43

Conversation

@emopers
Copy link

@emopers emopers commented Dec 8, 2015

LongInterval.java calls java.lang.long.parseLong without first checking whether the argument parses. This lead to an uncaught NumberFormateException: Oracle Java 7 API specification.

This pull request adds a check and a test for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant