United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7192955 Introspector overide PropertyDescriptor for generic type field defined in super class
JDK-7192955 : Introspector overide PropertyDescriptor for generic type field defined in super class

Details
Type:
Bug
Submit Date:
2012-08-21
Status:
Resolved
Updated Date:
2013-05-24
Project Name:
JDK
Resolved Date:
2012-09-11
Component:
client-libs
OS:
other
Sub-Component:
java.beans
CPU:
other
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
This is a SUNBUG for 100210: https://bugs.openjdk.java.net/show_bug.cgi?id=100210

When you have a field with generic type where the generic is an interface
Introspector overide the PropertyDescriptor into the method
addPropertyDescriptor

In my test case the field genericObject in BaseObject is supose to be bound.

testcase.zip attached to this report.


Test output in JDK7 build 14:

% javac -g *.java
% java -showversion MainTest
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b14)
Java HotSpot(TM) Tiered VM (build 1.7.0-ea-b14, mixed mode)

class is bound: false
genericObject is bound: true
test is bound: true


Test output in JDK7 build 15:

% javac -g *.java
% java -showversion MainTest
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b15)
Java HotSpot(TM) Tiered VM (build 1.7.0-ea-b15, mixed mode)

class is bound: false
genericObject is bound: false
test is bound: true

                                    

Comments
EVALUATION

Generic properties are not bound even if the class declares the addPropertyChangeListener method.
                                     
2012-08-24



Hardware and Software, Engineered to Work Together