This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 38300

Summary: libs/jaxp module unnecessarily requires javax.xml.transform.TransformerFactory
Product: ide Reporter: Jesse Glick <jglick>
Component: libsAssignee: issues@ide <issues>
Status: CLOSED FIXED    
Severity: blocker CC: pkuzel, ppisl, rkubacki
Priority: P2 Keywords: ARCH, JDK_SPECIFIC
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: suggested patch

Description Jesse Glick 2003-12-23 16:28:26 UTC
For NB 3.6 we require JDK 1.4+, which
automatically includes a full JAXP impl, including
an XSLT transformer. Yet its manifest still includes

OpenIDE-Module-Requires:
javax.xml.transform.TransformerFactory

which is only satisfied by libs/xalan, causing the
Xalan autoload module to be turned on pretty much
all the time (e.g. if you are using any XML module).

AFAICT this is completely unnecessary since the
JDK already comes with Xalan (or, perhaps, another
compliant XSLT processor).

IMHO we should:

1. Delete the OIDE-M-R: j.x.t.TF line from this
module.

2. Replace it with

OpenIDE-Module-Java-Dependencies: Java > 1.4

to ensure that full JAXP is in the JRE.

3. Deprecate the libs/jaxp module.

4. Cease to add a dep on this module from other
modules. (They can use a Java > 1.4 dep just to be
sure.)

5. Remove libs/jaxp from the standard distro.

6. Remove libs/xalan from the standard distro in
case no one is actually depending on it - i.e. in
case no one needs to directly access Xalan impl
classes, and all users go through JAXP APIs.
Comment 1 Jesse Glick 2003-12-23 17:52:58 UTC
See also issue #34593.
Comment 2 _ rkubacki 2004-05-17 17:13:05 UTC
Created attachment 14917 [details]
suggested patch
Comment 3 _ rkubacki 2004-05-17 17:15:50 UTC
Who is responsible for libs? Should I integrate the patch?

I added Petr P. to cc as maintains XML modules now and Petr K. who may
know if there is some reason why bundled Xalan should be used.
Comment 4 Jesse Glick 2004-05-17 17:31:42 UTC
Patch looks fine to me.
Comment 5 _ rkubacki 2004-05-17 18:01:52 UTC
thanks, I will wait for Petrs' feedback.
Comment 7 _ rkubacki 2004-05-19 13:39:41 UTC
done
Comment 8 Petr Jiricka 2004-05-19 17:08:20 UTC
Cool! This decreases the download size of NetBeans by some 2.5 or 3
megabytes!
Comment 9 Marian Mirilovic 2011-06-09 09:51:11 UTC
v/c