Skip to content

Commit a61bd8b

Browse files
committed
compiler: improve comments JVMCIVersionCheck.Version#parse
1 parent f61909c commit a61bd8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/JVMCIVersionCheck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ static Version parse(String vmVersion) {
113113
}
114114

115115
} catch (NumberFormatException e) {
116-
// ignore
116+
// cannot parse JVMCI version numbers -> be on the safe side and ignore
117117
}
118118
} else {
119119
try {
120120
// assume OpenJDK version
121121
return createOpenJDKVersion(stripVersion(vmVersion));
122122
} catch (IllegalArgumentException e) {
123-
// ignore
123+
// unexpected version string -> be on the safe side and ignore
124124
}
125125
}
126126
return null;

0 commit comments

Comments
 (0)