United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7189112 java.beans.Introspector misses write methods
JDK-7189112 : java.beans.Introspector misses write methods

Details
Type:
Bug
Submit Date:
2012-08-03
Status:
Resolved
Updated Date:
2013-10-31
Project Name:
JDK
Resolved Date:
2012-09-05
Component:
client-libs
OS:
generic
Sub-Component:
java.beans
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

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.
                                     
2012-08-20



Hardware and Software, Engineered to Work Together