< prev index next >

src/java.desktop/share/classes/java/beans/PropertyDescriptor.java

Print this page

        

@@ -475,11 +475,13 @@
                     // Fall through
                 }
             }
             try {
                 if (ctor == null) {
-                    editor = cls.newInstance();
+                    @SuppressWarnings("deprecation")
+                    Object tmp = cls.newInstance();
+                    editor = tmp;
                 } else {
                     editor = ctor.newInstance(new Object[] { bean });
                 }
             } catch (Exception ex) {
                 // Fall through
< prev index next >