Skip to content

Commit

Permalink
Quick hack to allow Java 9 version, see findbugsproject#105
Browse files Browse the repository at this point in the history
The right approach would be something like findbugsproject#75.
  • Loading branch information
iloveeclipse committed Jun 5, 2016
1 parent a0e5f3e commit d0e182b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion findbugs/src/java/edu/umd/cs/findbugs/JavaVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ public class JavaVersion {
public JavaVersion(String versionString) throws JavaVersionException {
Matcher matcher = PATTERN.matcher(versionString);
if (!matcher.matches()) {
throw new JavaVersionException("Could not parse Java version string: " + versionString);
if(versionString.startsWith("9")) {
major = 1;
minor = 9;
rest = "";
return;
} else {
throw new JavaVersionException("Could not parse Java version string: " + versionString);
}
}
try {
major = Integer.parseInt(matcher.group(1));
Expand Down

0 comments on commit d0e182b

Please sign in to comment.