United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4305280 PropertyEditorSupport constructor should be public
JDK-4305280 : PropertyEditorSupport constructor should be public

Details
Type:
Enhancement
Submit Date:
2000-01-18
Status:
Resolved
Updated Date:
2003-08-15
Project Name:
JDK
Resolved Date:
2003-08-15
Component:
client-libs
OS:
windows_nt,generic
Sub-Component:
java.beans
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.0,1.2.2
Fixed Versions:
5.0 (tiger)

Related Reports
Duplicate:
Relates:

Sub Tasks

Description

Name: krT82822			Date: 01/18/2000


java version "1.2.2"
Classic VM (build JDK-1.2.2-001, native threads, symcjit)

Am I mad, or doesn't the PropertyEditorSupport(Object) constructor need to be
public for delegation to work?

The fact that this bug has not been reported before now is a testament to the
fact that noone uses PropertyEditorSupport via delegation from another class.
(not even the QA people who should have tested this functionality)
(Review ID: 99727) 
======================================================================

                                    

Comments
EVALUATION

This is a valid point. One of the desires of some of the builder vendors is to expose the source component of a PropertyEditor. 

We should also add get/setSource() as well. Ideally, we should add these methods /requirements on PropertyEditor but that is an interface and we would be breaking a lot of existing code.
###@###.### 2001-12-10

Some licensees have been requesting that we introduce a new interface to get the source object. We may consider that option but in the meantime, we can get the same functionality by exposing the source object in PropertyEditorSupport.

They also advise that the specification should emphasise that the source object should be for informational purposes only (read only).

###@###.### 2003-03-17
                                     
2003-03-17
PUBLIC COMMENTS

x
                                     
2004-06-10
WORK AROUND



Name: krT82822			Date: 01/18/2000


Create a sub-class of PropertyEditorSupport that provides a public constructor
for delegation. But that defeats the whole purpose doesn't it?
======================================================================
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b16


                                     
2004-06-14



Hardware and Software, Engineered to Work Together