--- old/src/java.base/share/classes/sun/invoke/util/VerifyAccess.java 2018-11-26 16:25:01.000000000 -0800 +++ new/src/java.base/share/classes/sun/invoke/util/VerifyAccess.java 2018-11-26 16:25:00.000000000 -0800 @@ -284,7 +284,6 @@ // that differs from "type"; this happens once due to JVM system dictionary // memoization. And the caller never gets to look at the alternate type binding // ("res"), whether it exists or not. - type = type.asBoxType(); final String name = type.getName(); Class res = java.security.AccessController.doPrivileged( new java.security.PrivilegedAction<>() { @@ -296,7 +295,7 @@ } } }); - return (type == res); + return (type.asBoxType() == res); } /**