Patch: java.io.File

Bryce McKinlay mckinlay@redhat.com
Mon Sep 6 13:50:00 GMT 2004


Michael Koch wrote:

>I wrote/megred the attached patch to merge more with classpath' 
>version of java.io.File. Mauve testsuite run with no new regressions.
>
>Ok for trunk ?
>
>
>Michael
>
>
>2004-09-04  Jeroen Frijters  <jeroen@frijters.net>
>
>	(normalizePath): Added special case for windows systems.
>
>2004-09-04  Michael Koch  <konqueror@gmx.de>
>
>	* java/io/File.java
>	(dupSeparator): Made private.
>	(File(URI)): New constructor.
>	(getParentFile): Fixed javadoc.
>	(createTempFile): Reformated.
>	(setReadOnly): Added comment.
>	(deleteOnExit): Merged javadoc with classpath version.
>  
>

OK....

>+	    ((p.charAt(1) >= 'a' && p.charAt(1) <= 'z') ||
>+	    (p.charAt(1) >= 'A' && p.charAt(1) <= 'Z')) &&
>  
>
... but I wonder if these tests are neccessary. It's probably 
sufficient, and faster, to just test this:

>+	    p.charAt(2) == ':')
>  
>

Bryce



More information about the Java-patches mailing list