United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7179078 : javax.swing.*BeanInfo classes should not be in dt.jar

Details
Type:
Enhancement
Submit Date:
2012-06-22
Status:
In Progress
Updated Date:
2014-11-23
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
generic
Sub-Component:
java.beans
CPU:
generic
Priority:
P3
Resolution:
Unresolved
Affected Versions:
9
Targeted Versions:
9

Related Reports
Blocks:
Relates:

Sub Tasks

Description
dt.jar is a JAR file that we currently include in the JDK with pre-generated BeanInfo classes and some resource files (images mostly).

As we move to a modular JDK then we need to decide what do with these issues. The main problem is that the BeanInfo classes are in the javax.swing package and this package is in our "desktop" module. We wat to avoid spliting packages between modules but at the same time we don't want to add additional footprint by including the BeanInfo classes in the runtime.

This bug is submitted to examine this issue. One suggestion proposed is that the BeanInfo classes move to the com.sun.beans.beaninfo package and that be in its own module (the desktop module could optionally depend on it). 

It's not clear who uses this JAR file. NetBeans have reported that they use the BeanInfo classes but that they do so via the Introspector API, it doesn't matter to them if dt.jar exists or not.

One other thing to know is that there isn't a JCK issue here because these classes are excluded from the signature test.

At this time we would like to get the issue resolved for JDK8 (it's not an issue for 7u).

                                    

Comments
We are ok.
                                     
2014-10-14
The *BeanInfo classes and .gif files that were in dt.jar are now being compiled to the java.desktop module (and hence the boot class loader). If this is acceptable to the client team for the modular image milestone then we can remove this issue from the Bertha list.
                                     
2014-10-04
We should replace @beaninfo with annotation before we remove BeanInfo classes from dt.jar.
                                     
2013-11-21
These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. 
Kind regards,
Mathias
                                     
2013-08-29
These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. 
Kind regards,
Mathias
                                     
2013-08-29
These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. 
Kind regards,
Mathias
                                     
2013-08-29
*This is anti-deferral criteria list*:
    - P2
-------------- Engineering's Criteria -------------------------------------
    - tck-red labeled
    - conformance labeled
    - P3 regressions reported/labeled against jdk8
    - findbugs, parfait, eht labeled bugs
    - CAP <1 year reported
    - netbeans  <1 year reported 

Victor
----------------- SQE's OK ---------------------------------
Yes, we are ok with that

thanks, Mikhail

                                     
2013-08-15
Converted "8-client-defer-candidate" label to "8-defer-request" by SQE' OK.
                                     
2013-08-15
I'm okay if this is deferred to 9 but it needs to be done in 9 as otherwise it will be a blocking issue for modules.
                                     
2013-08-15



Hardware and Software, Engineered to Work Together