src/share/classes/javax/swing/text/DefaultFormatter.java

Print this page

        

*** 244,259 **** if (value != null) { vc = value.getClass(); } } if (vc != null) { ! Constructor cons; try { ReflectUtil.checkPackageAccess(vc); SwingUtilities2.checkAccess(vc.getModifiers()); ! cons = vc.getConstructor(new Class[]{String.class}); } catch (NoSuchMethodException nsme) { cons = null; } --- 244,259 ---- if (value != null) { vc = value.getClass(); } } if (vc != null) { ! Constructor<?> cons; try { ReflectUtil.checkPackageAccess(vc); SwingUtilities2.checkAccess(vc.getModifiers()); ! cons = vc.getConstructor(new Class<?>[]{String.class}); } catch (NoSuchMethodException nsme) { cons = null; }