We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7ad98a commit 65d5c78Copy full SHA for 65d5c78
src/main/java/org/apache/commons/beanutils2/MethodUtils.java
@@ -1044,7 +1044,7 @@ private static void setMethodAccessible(final Method method) {
1044
boolean vulnerableJVM = false;
1045
try {
1046
final String specVersion = System.getProperty("java.specification.version");
1047
- if (specVersion.charAt(0) == '1' &&
+ if (specVersion.charAt(0) == '1' && specVersion.charAt(1) == '.' &&
1048
(specVersion.charAt(2) == '0' ||
1049
specVersion.charAt(2) == '1' ||
1050
specVersion.charAt(2) == '2' ||
0 commit comments