Hi,

I comitted the following to get java/io/File.java to compile again.
The single String constructor will throw the NullPointerException
when needed.

2001-07-10  Mark Wielaard <[EMAIL PROTECTED]>
        * java/io/File.java (String,String constructor): compile fix

Cheers,
Mark
-- 
Stuff to read:
    <http://www.toad.com/gnu/whatswrong.html>
  What's Wrong with Copy Protection, by John Gilmore
Index: java/io/File.java
===================================================================
RCS file: /cvs/classpath/java/io/File.java,v
retrieving revision 1.9
diff -u -u -r1.9 File.java
--- java/io/File.java   2001/07/06 12:27:51     1.9
+++ java/io/File.java   2001/07/09 22:36:36
@@ -295,16 +295,7 @@
 public
 File(String dirname, String name)
 {
-  if (name == null)
-    throw new NullPointerException ("File name is null");
-
-  if (dirname == null)
-    return new File (name);
-
-  StringBuffer buf = new StringBuffer(dirname);
-  buf.append(separator);
-  buf.append(name);
-  return new File (buf.toString());
+  this((name == null || dirname ==null) ? null : dirname + separator + name);
 }
 
 /*************************************************************************/

Reply via email to