8077270: Missed test data in the test on java.beans.BeanProperty
authorserb
Thu, 20 Aug 2015 13:46:16 +0300
changeset 32482 45ff83ee1ee9
parent 32481 6f01579f7118
child 32483 851c672880a6
8077270: Missed test data in the test on java.beans.BeanProperty Reviewed-by: alexsch
jdk/test/java/beans/Introspector/4058433/TestBeanProperty.java
--- a/jdk/test/java/beans/Introspector/4058433/TestBeanProperty.java	Thu Aug 20 13:33:12 2015 +0300
+++ b/jdk/test/java/beans/Introspector/4058433/TestBeanProperty.java	Thu Aug 20 13:46:16 2015 +0300
@@ -39,7 +39,7 @@
         Class<?>[] types =
                 {B.class, BL.class, BLF.class, E.class, H.class, P.class,
                  VU.class, D.class, EVD.class, EVE.class, EV.class, EVL.class,
-                 EVX.class};
+                 EVX.class, R.class};
         for (Class<?> type : types) {
             PropertyDescriptor pd = BeanUtils.getPropertyDescriptor(type, "value");
             if (((B.class == type) || (BLF.class == type)) && pd.isBound()) {
@@ -66,6 +66,10 @@
                 BeanUtils.reportPropertyDescriptor(pd);
                 throw new Error("required");
             }
+            if ((D.class == type) == !"getter".equals(pd.getShortDescription())) {
+                BeanUtils.reportPropertyDescriptor(pd);
+                throw new Error("shortDescription");
+            }
             if ((VU.class == type) == !Boolean.TRUE.equals(pd.getValue("visualUpdate"))) {
                 BeanUtils.reportPropertyDescriptor(pd);
                 throw new Error("visualUpdate");