< prev index next >

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

Print this page

        

@@ -47,11 +47,11 @@
     {
         // We can't inflate a constructor belonging to a vm-anonymous class
         // 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(c.getDeclaringClass())) {
+                && !c.getDeclaringClass().isHidden()) {
             ConstructorAccessorImpl acc = (ConstructorAccessorImpl)
                 new MethodAccessorGenerator().
                     generateConstructor(c.getDeclaringClass(),
                                         c.getParameterTypes(),
                                         c.getExceptionTypes(),
< prev index next >