Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examiner does not check the validity of input JavaSource #3

Merged
merged 1 commit into from Dec 27, 2015

Conversation

emopers
Copy link
Contributor

@emopers emopers commented Dec 22, 2015

In Examiner.java:259, 'scanner.next()' is called on 'java.util.Scanner scanner' without checking
if there are more elements. Because the scanner is built from the JavaSource parameter
that can be invalid (e.g., package keyword followed by an empty package name), this can lead to a runtime exception without a useful error message. This pull request adds an error message and a test.

Thomas-S-B added a commit that referenced this pull request Dec 27, 2015
Examiner does not check the validity of input JavaSource
@Thomas-S-B Thomas-S-B merged commit 87d2c4b into Thomas-S-B:master Dec 27, 2015
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.

None yet

2 participants