JDK-8130937 : Several methods in BeanProperty return null instead of boolean value
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-07-10
  • Updated: 2015-09-13
  • Resolved: 2015-08-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b78Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
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] 
Comments
Please do not reopen CR. This is another bug, file a new CR.
25-08-2015