< prev index next >

src/java.base/share/classes/jdk/internal/reflect/NativeMethodAccessorImpl.java

Print this page

        

@@ -45,11 +45,11 @@
     {
         // We can't inflate methods belonging to vm-anonymous classes because
         // that kind of class can't be referred to by name, hence can't be
         // found from the generated bytecode.
         if (++numInvocations > ReflectionFactory.inflationThreshold()
-                && !ReflectUtil.isVMAnonymousClass(method.getDeclaringClass())) {
+                && !method.getDeclaringClass().isHidden()) {
             MethodAccessorImpl acc = (MethodAccessorImpl)
                 new MethodAccessorGenerator().
                     generateMethod(method.getDeclaringClass(),
                                    method.getName(),
                                    method.getParameterTypes(),
< prev index next >