< prev index next >
src/jdk.unsupported/share/classes/sun/reflect/ReflectionFactory.java
Print this page
@@ -83,10 +83,25 @@
}
return soleInstance;
}
/**
+ * Returns an accessible constructor capable of creating instances
+ * of the given class, initialized by the given constructor.
+ *
+ * @param cl the class to instantiate
+ * @param constructorToCall the constructor to call
+ * @return an accessible constructor
+ */
+ public Constructor<?> newConstructorForSerialization(Class<?> cl,
+ Constructor<?> constructorToCall)
+ {
+ return delegate.newConstructorForSerialization(cl,
+ constructorToCall);
+ }
+
+ /**
* Returns an accessible no-arg constructor for a class.
* The no-arg constructor is found searching the class and its supertypes.
*
* @param cl the class to instantiate
* @return a no-arg constructor for the class or {@code null} if
< prev index next >