jdk/src/share/classes/java/beans/PropertyDescriptor.java
changeset 13651 cf84d3383a29
parent 13650 0cf56ea6f0c6
child 13773 69665c88db93
equal deleted inserted replaced
13650:0cf56ea6f0c6 13651:cf84d3383a29
   591 
   591 
   592         Method xw = x.getWriteMethod();
   592         Method xw = x.getWriteMethod();
   593         Method yw = y.getWriteMethod();
   593         Method yw = y.getWriteMethod();
   594 
   594 
   595         try {
   595         try {
   596             if (yw != null && yw.getDeclaringClass() == getClass0()) {
   596             if (yw != null) {
   597                 setWriteMethod(yw);
   597                 setWriteMethod(yw);
   598             } else {
   598             } else {
   599                 setWriteMethod(xw);
   599                 setWriteMethod(xw);
   600             }
   600             }
   601         } catch (IntrospectionException ex) {
   601         } catch (IntrospectionException ex) {