7029979: (fs) Path.toRealPath(boolean) should be toRealPath(LinkOption...)

Alan Bateman Alan.Bateman at oracle.com
Wed Mar 23 05:37:38 PDT 2011


Early versions of the file system API used a boolean parameter to 
indicate if symbolic links should be followed or not. These methods has 
long been changed to use LinkOption and the varargs syntax. There is one 
remaining method in the API that still uses a boolean and I'd like to 
get this cleaned up before the doors close on jdk7. The method is 
Path.toRealPath where the parameter indicates if symbolic links are 
resolved or not.  The webrev with the proposal is here:
  http://cr.openjdk.java.net/~alanb/7029979/webrev/

(Sherman - I've included an updated to the zip provider as it is 
impacted by this change).

-Alan


More information about the nio-dev mailing list