This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
java.io.File compatibility problem.
- From: Rutger Ovidius <ovid at mailandnews dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 17 Oct 2003 16:01:17 -0400
- Subject: java.io.File compatibility problem.
Hi,
With normal (Sun) java, a File("") object will return a canonicalPath of the
current directory.
With gcj java, this returns a "java.io.IOException: GetFullPathName failed"
Is this normal? It is causing compatibility problems when compiling SWT/JFace
apps (and probably others..)
Tested on Windows with gcj 3.3.1, and gcj version 3.4 20031006 (experimental).
---
import java.io.File;
public class Main {
public static void main( String[] args ) {
File f = new File("");
try {
System.out.println( f.getCanonicalPath() );
} catch ( Exception e ) {
System.out.println( e );
}
}
}