bloritsch 2002/12/30 05:42:33
Modified: xmlutil/src/java/org/apache/avalon/excalibur/xml
JaxpParser.java
Log:
Fix compile error--lexicalHandler was Final
Revision Changes Path
1.10 +6 -5
jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/JaxpParser.java
Index: JaxpParser.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/JaxpParser.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- JaxpParser.java 27 Dec 2002 07:29:11 -0000 1.9
+++ JaxpParser.java 30 Dec 2002 13:42:33 -0000 1.10
@@ -238,6 +238,7 @@
throws SAXException, IOException
{
setupXMLReader();
+ LexicalHandler lex = lexicalHandler;
// Ensure we will use a fresh new parser at next parse in case of failure
XMLReader tmpReader = m_reader;
@@ -245,10 +246,10 @@
try
{
- if( null != lexicalHandler )
+ if( null != lex )
{
tmpReader.setProperty(
"http://xml.org/sax/properties/lexical-handler",
- lexicalHandler );
+ lex );
}
}
catch( final SAXException e )
@@ -258,7 +259,7 @@
"'http://xml.org/sax/properties/lexical-handler'";
getLogger().warn( message );
- lexicalHandler = null;
+ lex = null;
}
tmpReader.setErrorHandler( this );
@@ -276,7 +277,7 @@
m_reader = tmpReader;
// Reset the Lexical Handler to null, so that we can reuse the parser
- if(lexicalHandler != null)
+ if(lex != null)
{
tmpReader.setProperty("http://xml.org/sax/properties/lexical-handler",
null);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>