This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes toRealPath - Oracle tutorial errata Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "toRealPath - Oracle tutorial errata" Watch "toRealPath - Oracle tutorial errata" New topic
Author

toRealPath - Oracle tutorial errata

Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
Error in oracle tutorial for NIO2. toRealPath API cannot take boolean as param::



The toRealPath method returns the real path of an existing file. This method performs several operations in one:

If true is passed to this method and the file system supports symbolic links, this method resolves any symbolic links in the path.
If the Path is relative, it returns an absolute path.
If the Path contains any redundant elements, it returns a path with those elements removed.


http://docs.oracle.com/javase/tutorial/essential/io/pathOps.html
http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#toRealPath(java.nio.file.LinkOption...)


/** Code speaks louder than words */
 
jQuery in Action, 2nd edition
 
subject: toRealPath - Oracle tutorial errata
 
Similar Threads
non static variable
[Confusion] A Java Question
Correct usage of Swing thread?
Java code help
% operator