CVS Update: xmlpull-api-v1/src/java/api/org/xmlpull/v1
Aleksander Andrzej Slominski <[email protected]> Tue, 4 Mar 2003 12:58:24 -0500 (EST)
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
aslom 03/03/04 12:58:24
Modified: src/java/api/org/xmlpull/v1 XmlPullParserFactory.java
Log:
chnaged to use XmlPullPArser factory class as default context and not String.class as using String will never find /META-INF/services/org.xmlpull.v1.XmlPullParserFactory resource ...
Revision Changes Path
1.21 +5 -1 xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParserFactory.java
Index: XmlPullParserFactory.java
===================================================================
RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParserFactory.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -t -w -r1.20 -r1.21
--- XmlPullParserFactory.java 31 Jan 2003 04:41:45 -0000 1.20
+++ XmlPullParserFactory.java 4 Mar 2003 17:58:24 -0000 1.21
@@ -257,7 +257,11 @@
public static XmlPullParserFactory newInstance (String classNames, Class context)
throws XmlPullParserException {
- if (context == null) context = "".getClass ();
+ if (context == null) {
+ //make sure context uses the smae class loader as API classes
+ XmlPullParserFactory f = new XmlPullParserFactory();
+ context = f.getClass ();
+ }
String classNamesLocation = null;
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/LIgTpC/vN2EAA/xGHJAA/2U_rlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/