United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6397609 DOC: De-register API required for PropertyEditorManager and/or doc change
JDK-6397609 : DOC: De-register API required for PropertyEditorManager and/or doc change

Details
Type:
Bug
Submit Date:
2006-03-13
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
client-libs
OS:
generic
Sub-Component:
java.beans
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
We have the following problem:
  Add an application on the WAS server
  Start and stop the application
  Within the application register Editor via java.bean.PropertyEditorManager.register Method.
  Keep monitoring the Perm Space.
  Once the perm space is getting filled to its max
  Get HeapDumps
  From HeapDumps its clear that Editor objects are holding reference to CompoundClass Loader and due to which perm space is getting depleted.

The basic aim for raising this bug is to request

1> To have a separate API to de-register the Editor instead of reusing the same registerEditior Method of de-registeration.

  From the present api docs, its very unclear that user has to de-register the editors using the same method.

2>  To make the API specification document correct stating that user has to remove the unwanted and unused Editor's via the separate method provided for de-registeration.

The PropertyEditorManager documentation does not make any recommendation with respect to situations requiring deregistration, nor does it discuss classloaders since unwanted Editor objects are holding the classloader loaded those objects and the JVM cannot not automatically remove the objects from the list. Hence we need to clearly state in the API document that users have to take care of removing unwanted Editor from the registered list.

                                    

Comments
WORK AROUND

It is possible to use method registerEditor(Class,Class) to unregister editor. The second parameter should be null.
                                     
2006-03-14
EVALUATION

It is necessary to research possible situations and describe it in javadoc for method registerEditor(Class,Class).
                                     
2006-03-14



Hardware and Software, Engineered to Work Together