File.java (getAbsolutePath): On Windows, take care of paths like "C:", "G:foo\bar", etc.

2003-04-19  Ranjit Mathew  <rmathew@hotmail.com>

	* java/io/File.java (getAbsolutePath): On Windows, take care
	of paths like "C:", "G:foo\bar", etc.
	(getName): Make it work correctly on Windows.
	(getParent): Make it work correctly on Windows. For UNIX,
	fix bug that causes "/" to be returned as the parent of "/",
	instead of null as returned by Sun's JRE.

	* java/io/natFileWin32.cc: Change copyright owner to FSF.

From-SVN: r65823
This commit is contained in:
Ranjit Mathew
2003-04-19 19:08:49 +00:00
committed by Tom Tromey
parent 30f45f509f
commit f1a1591b9e
3 changed files with 113 additions and 10 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
// natFileWin32.cc - Native part of File class.
// natFileWin32.cc - Native part of File class for Win32.
/* Copyright (C) 1998, 1999, 2002, 2003 Red Hat, Inc.
/* Copyright (C) 1998, 1999, 2002, 2003 Free Software Foundation, Inc.
This file is part of libgcj.