Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8130937

Several methods in BeanProperty return null instead of boolean value

XMLWordPrintable

    • b78
    • generic
    • generic

        The spec for java.beans.BeanProperty.(expert, required, visual update):

        http://download.java.net/jdk9/docs/api/java/beans/BeanProperty.html

        asserts that:
         
        expert():
        "Returns:true if the annotated property is an expert property; false otherwise."
        required():
        "Returns:true if the annotated property is a required property; false otherwise."
        visualUpdate():
        "Returns: true if the corresponding component is repainted; false otherwise."

        but they returns null instead of boolean value. Please see the details in the attached Test.java

        Due to this issue the following JCK tests fail:
        api/java_beans/BeanProperty/index.html#BeanProperty[test_expertFalse]
        api/java_beans/BeanProperty/index.html#BeanProperty[test_requiredFalse]
        api/java_beans/BeanProperty/index.html#BeanProperty[test_requiredTrue]
        api/java_beans/BeanProperty/index.html#BeanProperty[test_visualUpdateFalse]

              serb Sergey Bylokhov
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: