jdk/src/share/classes/java/beans/PropertyDescriptor.java
changeset 11087 3217e8ad1d4a
parent 6657 15dbb366c6a3
child 11140 f93045767e5d
child 11268 f0e59c4852de
equal deleted inserted replaced
11086:09b1d6383d0b 11087:3217e8ad1d4a
   452                     editor = cls.newInstance();
   452                     editor = cls.newInstance();
   453                 } else {
   453                 } else {
   454                     editor = ctor.newInstance(new Object[] { bean });
   454                     editor = ctor.newInstance(new Object[] { bean });
   455                 }
   455                 }
   456             } catch (Exception ex) {
   456             } catch (Exception ex) {
   457                 // A serious error has occured.
   457                 // Fall through
   458                 // Proably due to an invalid property editor.
       
   459                 throw new RuntimeException("PropertyEditor not instantiated",
       
   460                                            ex);
       
   461             }
   458             }
   462         }
   459         }
   463         return (PropertyEditor)editor;
   460         return (PropertyEditor)editor;
   464     }
   461     }
   465 
   462