gcc/libjava/java
Bryce McKinlay f404754042 1.3-Compliant Implementation of java.io.File.
* java/lang/natSystem.cc (init_properties): Get "file.separator",
	"path.separator", and "java.io.tmpdir" from the File class, instead
	of setting them explicitly.
	* java/io/File.java: Do not canonicalize paths for security manager
	checks. Call init_native() from static initializer. Do not pass path
	argument to native methods. New native method declarations. Some
	security manager checks moved to checkWrite().
	(equals): Check file system case sensitivity and act appropriatly.
	(hashCode): Likewise.
	(isHidden): New method implemented.
	(performList): Changed prototype. Now takes a class argument specifying
	the class of the returned array: Strings or File objects. Also added
	FileFilter argument.
	(listFiles): New variants with "File" return type implemented.
	(createTempFile): Use createNewFile(). Use maxPathLen.
	(setReadOnly): New method implemented.
	(listRoots): Likewise.
	(compareTo): Likewise.
	(setLastModified): Likewise.
	(checkWrite): New method.
	(setPath): Removed.
	* java/io/natFile.cc: Various functions no longer take canonical path
	argument.
	(stat): Handle ISHIDDEN query.
	(isAbsolute): Remove WIN32 cruft.
	(performList): New arguments. Handle returning either File[] or
	String[] arrays. Check with FileFilter or FilenameFilter arguments as
	appropriate. Use an ArrayList, not a Vector, for the temporary list.
	(performSetReadOnly): New method implemented.
	(performListRoots): Likewise.
	(performSetLastModified): Likewise.
	(performCreate): Likewise.
	(init_native): New initialization function.
	* java/io/natFileWin32.cc: Various functions no longer take canonical
	path argument.
	(stat): Add FIXME about ISHIDDEN query.
	(performList): New arguments. Handle returning either File[] or String[]
	arrays. Check with FileFilter or FilenameFilter arguments as
	appropriate. Use an ArrayList, not a Vector, for the temporary list.
	(performSetReadOnly): New. Stubbed.
	(performListRoots): Likewise.
	(performSetLastModified): Likewise.
	(performCreate): Likewise.
	(init_native) New initialization function.
	* configure.in: Check for utime() and chmod().
	* configure: Rebuilt.
	* include/config.h.in: Rebuilt.

	Resolves PR libgcj/1759.

From-SVN: r40985
2001-04-01 12:16:40 +01:00
..
applet backport: Applet.java: New file. 2000-07-12 05:52:04 +01:00
awt Cursor.java (Cursor(String)): Set type to custom. 2001-01-11 17:49:47 +00:00
beans * java/bean/Beans.java (instantiate): enable Applet code from Classpath 2001-01-18 00:43:17 +00:00
io 1.3-Compliant Implementation of java.io.File. 2001-04-01 12:16:40 +01:00
lang 1.3-Compliant Implementation of java.io.File. 2001-04-01 12:16:40 +01:00
math Changes merged from Kawa's gnu.math. 2001-03-01 22:55:33 -08:00
net URLStreamHandler.java (parseURL): Fix bug which would "canonicalize" "../../xxx" to "/xxx". 2001-03-19 15:31:14 -08:00
security Makefile.am: Removed java/io/Replaceable.java and java/io/Resolvable.java. 2000-10-05 23:57:16 +00:00
sql Fix comments for doclets 2001-01-06 23:28:40 +00:00
text re PR libgcj/1906 (difference between gcj and jdk for MessageFormat) 2001-02-07 22:46:28 +00:00
util exception.cc (java_eh_info): Make value type jthrowable. 2001-03-25 23:05:32 -08:00