United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6693974 Unify EventQueue$EventQueueItem and SunToolkit.$EventQueueItem classes
JDK-6693974 : Unify EventQueue$EventQueueItem and SunToolkit.$EventQueueItem classes

Details
Type:
Enhancement
Submit Date:
2008-04-25
Status:
Closed
Updated Date:
2011-05-17
Project Name:
JDK
Resolved Date:
2011-05-17
Component:
client-libs
OS:
generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports

Sub Tasks

Description
Should refactor EventQueue$EventQueueItem and SunToolkit.$EventQueueItem classes in order to use the same in both places.

                                    

Comments
EVALUATION

Seem the field named "id" from EventQueue is some kind of cached value as it is obtained from the event field. So it might be reasonable to get rid of it. This is a package-private API.
                                     
2008-04-25
EVALUATION

It's possible to move the EventQueueItem class to sun.awt package. As it's still required in the java.awt package we need to make it public as well as its members.
Moreover, the field named "id" does have a duplicating role for this class because the id value could be asked on the "event" (field) itself.
                                     
2008-06-23
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/awt_data/7/6693974.0
                                     
2008-07-07



Hardware and Software, Engineered to Work Together