implement File.getAbsolutePath()/File.getAbsoluteFile() on Unix platforms

This commit is contained in:
Anonymous
2011-08-11 08:52:49 -06:00
committed by Joel Dice
parent 7ed580cf84
commit 3d7c65d314
2 changed files with 24 additions and 1 deletions

View File

@ -120,6 +120,10 @@ public class File implements Serializable {
return toAbsolutePath(path);
}
public File getAbsoluteFile() {
return new File(getAbsolutePath());
}
private static native long length(String path);
public long length() {