JDK-7189112 : java.beans.Introspector misses write methods
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-03
  • Updated: 2014-10-24
  • Resolved: 2012-09-05
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 7 JDK 8
7u40Fixed 8 b55Fixed
Related Reports
Relates :  
Relates :  
Description
This is a SUNBUG for https://bugs.openjdk.java.net/show_bug.cgi?id=100182

Description


Created an attachment (id=216) [details]
BaseBean.java

Given the attached source code, running IntrospectorTest against a jvm other
then openjdk will print the following

class
public final native java.lang.Class java.lang.Object.getClass()
null
myBaseType
public java.lang.Object MyBean.getMyBaseType()
public void BaseBean.setMyBaseType(java.lang.Object)

IF you run it with openjdk you'll miss the setter

class
public final native java.lang.Class java.lang.Object.getClass()
null
myBaseType
public java.lang.String MyBean.getMyBaseType()
null

I've tested it using latest jdk versions 6 from ibm, jrockit and sun

The affected java version is
OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)


Comment #1

Created an attachment (id=217) [details]
MyBean.java


Comment #2

Created an attachment (id=218) [details]
IntrospectorTest.java

Comments
EVALUATION It is possible to override a getter that returns subclass. We should check for this.
20-08-2012