mrglavas 2004/10/27 23:06:10 Modified: java/src/org/apache/xml/serialize DOMSerializerImpl.java Log: Fixing JIRA Bug #1025: http://issues.apache.org/jira/browse/XERCESJ-1025 Fixes compilation problems on JDK 1.2.2. Revision Changes Path 1.31 +3 -3 xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java Index: DOMSerializerImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- DOMSerializerImpl.java 22 Oct 2004 21:11:11 -0000 1.30 +++ DOMSerializerImpl.java 28 Oct 2004 06:06:10 -0000 1.31 @@ -751,7 +751,7 @@ // REVISIT: We have to decode %nn sequences. For // now files containing spaces and other characters // which were escaped in the URI will fail. -- mrglavas - out = new FileOutputStream(new File(url.getPath())); + out = new FileOutputStream(new File(url.getFile())); } // Try to write to some other kind of URI. Some protocols // won't support this, though HTTP should work. @@ -926,7 +926,7 @@ // Use FileOutputStream if this URI is for a local file. if (protocol.equals("file") && (host == null || host.length() == 0 || host.equals("localhost"))) { - out = new FileOutputStream(getPathWithoutEscapes(url.getPath())); + out = new FileOutputStream(getPathWithoutEscapes(url.getFile())); } // Try to write to some other kind of URI. Some protocols // won't support this, though HTTP should work.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]