You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pi...@locus.apache.org on 2000/09/08 03:35:17 UTC

cvs commit: xml-xerces/java/src/javax/xml/parsers DocumentBuilder.java

pier        00/09/07 18:35:17

  Modified:    java/src/javax/xml/parsers DocumentBuilder.java
  Log:
  Thanks to Kevin Kress <Ke...@oracle.com>.
  The directory in the File was never considered as a part of the file name.
  
  Revision  Changes    Path
  1.3       +4 -2      xml-xerces/java/src/javax/xml/parsers/DocumentBuilder.java
  
  Index: DocumentBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/javax/xml/parsers/DocumentBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DocumentBuilder.java	2000/06/02 23:42:21	1.2
  +++ DocumentBuilder.java	2000/09/08 01:35:16	1.3
  @@ -108,7 +108,7 @@
    *
    * @author <a href="pier@betaversion.org">Pierpaolo Fumagalli</a>
    * @author Copyright &copy; 2000 The Apache Software Foundation.
  - * @version 1.0 CVS $Revision: 1.2 $ $Date: 2000/06/02 23:42:21 $
  + * @version 1.0 CVS $Revision: 1.3 $ $Date: 2000/09/08 01:35:16 $
    */
   public abstract class DocumentBuilder {
   
  @@ -168,7 +168,9 @@
       public Document parse(File file)
       throws SAXException, IOException, IllegalArgumentException {
           if (file==null) throw new IllegalArgumentException();
  -        return(this.parse(new InputSource(file.getName())));
  +        // Thanks to Kevin Kress <Ke...@oracle.com> for pointing
  +        // out this bug.
  +        return(this.parse(new InputSource(file.getAbsolutePath())));
       }
   
       /**