提交 a39d5f2b 编写于 作者: R rupashka

7195194: Better data validation for Swing

Reviewed-by: art, ahgross
上级 227c30cd
......@@ -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 @@ public class DefaultFormatter extends JFormattedTextField.AbstractFormatter
Constructor cons;
try {
cons = vc.getConstructor(new Class[] { String.class });
cons = ConstructorUtil.getConstructor(vc, new Class[]{String.class});
} catch (NoSuchMethodException nsme) {
cons = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册