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.
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.
See also issue #34593.
Created attachment 14917 [details] suggested patch
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.
Patch looks fine to me.
thanks, I will wait for Petrs' feedback.
commited: http://nbbuild.netbeans.org/source/browse/nbbuild/build.xml.diff?r1=1.489&r2=1.490 http://nbbuild.netbeans.org/source/browse/nbbuild/build.properties.diff?r1=1.172&r2=1.173 http://nbbuild.netbeans.org/source/browse/nbbuild/cluster.properties.diff?r1=1.33&r2=1.34 http://libs.netbeans.org/source/browse/libs/jaxp/manifest.mf.diff?r1=1.3&r2=1.4 http://libs.netbeans.org/source/browse/libs/jaxp/src/org/netbeans/libs/jaxp/Bundle.properties.diff?r1=1.2&r2=1.3 http://xml.netbeans.org/source/browse/xml/api/manifest.mf.diff?r1=1.11&r2=1.12 http://xml.netbeans.org/source/browse/xml/tools/manifest.mf.diff?r1=1.26&r2=1.27 http://xml.netbeans.org/source/browse/xml/xsl/manifest.mf.diff?r1=1.15&r2=1.16
done
Cool! This decreases the download size of NetBeans by some 2.5 or 3 megabytes!
v/c