jdk/test/java/beans/Introspector/Test4168833.java

Print this page

        

*** 40,53 **** --- 40,55 ---- * creates both an IndexedPropertyDescriptor which has a conflicting * type for getColor. */ public class Test4168833 { public static void main(String[] args) throws Exception { + /* IndexedPropertyDescriptor ipd = BeanUtils.getIndexedPropertyDescriptor(Base.class, "prop"); if (!ipd.getIndexedPropertyType().equals(Dimension.class)) { error(ipd, "Base.prop property should a Dimension"); } + */ // When the Sub class is introspected, // the property type should be color. // The complete "classic" set of properties // has been completed accross the hierarchy. test(Sub.class);