changeset 12691:a65750476441

8077270: Missed test data in the test on java.beans.BeanProperty Reviewed-by: alexsch
author serb
date Thu, 20 Aug 2015 13:46:16 +0300
parents 97f1c1c13164
children 9cad345fb47b
files test/java/beans/Introspector/4058433/TestBeanProperty.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/beans/Introspector/4058433/TestBeanProperty.java	Thu Aug 20 13:33:12 2015 +0300
+++ b/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");