* java/io/File.java (File): Throw IllegalArgumentException if URI is
non-hierarchical.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108528
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-12-14 Tom Tromey <tromey@redhat.com>
+
+ PR classpath/25389:
+ * java/io/File.java (File): Throw IllegalArgumentException if URI is
+ non-hierarchical.
+
2005-12-12 Andrew Haley <aph@redhat.com>
* java/lang/VMCompiler.java: Directly generate a new instance of
if (!uri.getScheme().equals("file"))
throw new IllegalArgumentException("invalid uri protocol");
- path = normalizePath(uri.getPath());
+ String name = uri.getPath();
+ if (name == null)
+ throw new IllegalArgumentException("URI \"" + uri
+ + "\" is not hierarchical");
+ path = normalizePath(name);
}
/**