diff options
author | aclement <aclement> | 2005-11-07 14:57:35 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-07 14:57:35 +0000 |
commit | d49f6e706343426a09129dab321a4a7ff80491d8 (patch) | |
tree | ef60b80d6cbe147302e8bd79e28fef50911b86f8 /loadtime/src | |
parent | 36b901060999ee29e90af7c547662b06208636ed (diff) | |
download | aspectj-d49f6e706343426a09129dab321a4a7ff80491d8.tar.gz aspectj-d49f6e706343426a09129dab321a4a7ff80491d8.zip |
Switch to using a parser that should be around on 1.4.
Diffstat (limited to 'loadtime/src')
-rw-r--r-- | loadtime/src/org/aspectj/weaver/loadtime/definition/DocumentParser.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/loadtime/src/org/aspectj/weaver/loadtime/definition/DocumentParser.java b/loadtime/src/org/aspectj/weaver/loadtime/definition/DocumentParser.java index c5744a85e..3036367b2 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/definition/DocumentParser.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/definition/DocumentParser.java @@ -11,17 +11,18 @@ *******************************************************************************/ package org.aspectj.weaver.loadtime.definition; +import java.io.InputStream; +import java.net.URL; + +import javax.xml.parsers.SAXParserFactory; + +import org.aspectj.util.LangUtil; import org.xml.sax.Attributes; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.DefaultHandler; -import org.xml.sax.helpers.XMLReaderFactory; -import org.aspectj.util.LangUtil; - -import java.io.InputStream; -import java.net.URL; /** * FIXME AV - doc, concrete aspect @@ -78,7 +79,7 @@ public class DocumentParser extends DefaultHandler { try { DocumentParser parser = new DocumentParser(); - XMLReader xmlReader = XMLReaderFactory.createXMLReader(); + XMLReader xmlReader = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); xmlReader.setContentHandler(parser); xmlReader.setErrorHandler(parser); |