# HG changeset patch # User serb # Date 1440067576 -10800 # Node ID 45ff83ee1ee90350fd8db4cd635ea2a9dce666ce # Parent 6f01579f71185ea1242430d2a81787dab933604e 8077270: Missed test data in the test on java.beans.BeanProperty Reviewed-by: alexsch diff -r 6f01579f7118 -r 45ff83ee1ee9 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");