8077270: Missed test data in the test on java.beans.BeanProperty
Reviewed-by: alexsch
--- 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");