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 - libs/jaxp module unnecessarily requires javax.xml.transform.TransformerFactory
Summary: libs/jaxp module unnecessarily requires javax.xml.transform.TransformerFactory
Status: CLOSED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: libs (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@ide
URL:
Keywords: ARCH, JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2003-12-23 16:28 UTC by Jesse Glick
Modified: 2011-06-09 09:51 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
suggested patch (6.58 KB, patch)
2004-05-17 17:13 UTC, _ rkubacki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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