nddelima 2004/08/31 14:32:31 Modified: java/src/org/apache/xerces/dom CoreDocumentImpl.java Log: A fix to prevent the field fDocumentURI from being overwritten when getBaseURI is invoked. Revision Changes Path 1.79 +2 -2 xml-xerces/java/src/org/apache/xerces/dom/CoreDocumentImpl.java Index: CoreDocumentImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/CoreDocumentImpl.java,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- CoreDocumentImpl.java 26 Aug 2004 21:28:39 -0000 1.78 +++ CoreDocumentImpl.java 31 Aug 2004 21:32:30 -0000 1.79 @@ -1175,7 +1175,7 @@ public String getBaseURI() { if (fDocumentURI != null && fDocumentURI.length() != 0 ) {// attribute value is always empty string try { - fDocumentURI = new URI(fDocumentURI).toString(); + return new URI(fDocumentURI).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ // REVISIT: what should happen in this case?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]