--- a/jdk/src/share/classes/javax/swing/text/DefaultFormatter.java Tue Sep 11 12:57:09 2012 +0400
+++ b/jdk/src/share/classes/javax/swing/text/DefaultFormatter.java Tue Sep 11 15:59:24 2012 +0400
@@ -24,6 +24,8 @@
*/
package javax.swing.text;
+import sun.reflect.misc.ConstructorUtil;
+
import java.io.Serializable;
import java.lang.reflect.*;
import java.text.ParseException;
@@ -245,7 +247,7 @@
Constructor cons;
try {
- cons = vc.getConstructor(new Class[] { String.class });
+ cons = ConstructorUtil.getConstructor(vc, new Class[]{String.class});
} catch (NoSuchMethodException nsme) {
cons = null;