Skip to content

Commit 65d5c78

Browse files
committed
[BEANUTIL-547] MethodUtils java version check fix Java 11
1 parent d7ad98a commit 65d5c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/commons/beanutils2/MethodUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ private static void setMethodAccessible(final Method method) {
10441044
boolean vulnerableJVM = false;
10451045
try {
10461046
final String specVersion = System.getProperty("java.specification.version");
1047-
if (specVersion.charAt(0) == '1' &&
1047+
if (specVersion.charAt(0) == '1' && specVersion.charAt(1) == '.' &&
10481048
(specVersion.charAt(2) == '0' ||
10491049
specVersion.charAt(2) == '1' ||
10501050
specVersion.charAt(2) == '2' ||

0 commit comments

Comments
 (0)