rpms/xml-commons/devel xml-commons.bz155693.patch, NONE, 1.1.2.1 xml-commons.spec, 1.9, 1.9.2.1

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Apr 22 13:18:06 UTC 2005


Update of /cvs/dist/rpms/xml-commons/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv32113

Modified Files:
      Tag: xml-commons-bz155693-branch
	xml-commons.spec 
Added Files:
      Tag: xml-commons-bz155693-branch
	xml-commons.bz155693.patch 
Log Message:
Provide a default SAX parser factory when running under libgcj (#155693)

xml-commons.bz155693.patch:
 SAXParserFactory.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

--- NEW FILE xml-commons.bz155693.patch ---
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=155693

--- xml-commons-1.0.b2/java/external/src/javax/xml/parsers/SAXParserFactory.java~	2002-02-06 15:52:30.000000000 +0000
+++ xml-commons-1.0.b2/java/external/src/javax/xml/parsers/SAXParserFactory.java	2005-04-22 14:08:31.000000000 +0100
@@ -132,11 +132,14 @@
         throws FactoryConfigurationError
     {
         try {
+	    String fallback = null;
+            if (System.getProperty("java.vm.name").equals("GNU libgcj"))
+                fallback = "gnu.xml.aelfred2.JAXPFactory";
             return (SAXParserFactory) FactoryFinder.find(
                 /* The default property name according to the JAXP spec */
                 "javax.xml.parsers.SAXParserFactory",
                 /* The fallback implementation class name */
-                null);
+                fallback);
         } catch (FactoryFinder.ConfigurationError e) {
             throw new FactoryConfigurationError(e.getException(),
                                                 e.getMessage());


Index: xml-commons.spec
===================================================================
RCS file: /cvs/dist/rpms/xml-commons/devel/xml-commons.spec,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -r1.9 -r1.9.2.1
--- xml-commons.spec	21 Apr 2005 15:00:12 -0000	1.9
+++ xml-commons.spec	22 Apr 2005 13:18:04 -0000	1.9.2.1
@@ -3,7 +3,7 @@
 Summary:        Common code for XML projects
 Name:           xml-commons
 Version:        1.0
-Release:        0.b2.6jpp_6fc
+Release:        0.b2.6jpp_7fc
 Epoch:          0
 License:        Apache Software License
 URL:            http://xml.apache.org/commons/
@@ -12,6 +12,7 @@
 Patch0:         xml-commons.build.patch
 Patch1:         xml-commons.manifest.patch
 Patch2:         xml-commons.bz130162.patch
+Patch3:         xml-commons.bz155693.patch
 Requires:       jpackage-utils >= 0:1.5
 BuildRequires:  ant, jpackage-utils >= 0:1.5
 BuildRequires:  coreutils
@@ -82,6 +83,7 @@
 if java -version 2>&1 | grep -q "gcj"; then
 %patch2 -p1
 fi
+%patch3 -p1
 
 # -----------------------------------------------------------------------------
 
@@ -179,6 +181,9 @@
 # -----------------------------------------------------------------------------
 
 %changelog
+* Fri Apr 22 2005 Gary Benson <gbenson at redhat.com> - 0:1.0-0.b2.6jpp_7fc
+- Provide a default SAX parser factory when running under libgcj (#155693).
+
 * Thu Apr 21 2005 Gary Benson <gbenson at redhat.com> - 0:1.0-0.b2.6jpp_6fc
 - Add gcj endorsed dir support.
 




More information about the fedora-cvs-commits mailing list