Skip to main content

Path#toRealPath different in Mac OS X preview

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
braghest
Offline
Joined: 2004-07-09

The method java.nio.file.Path#toRealPath is different in the Mac OS X preview. On Linux and Windows it takes a boolean as an argument. On the Mac OS X preview it takes an array of LinkOptions. Unfortunately the official JavaDoc is also out of sync. I filed an issue MACOSX_PORT-569 but got no response so far.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alanb
Offline
Joined: 2005-08-08

The toRealPath method was changed in jdk7-b138 (a few months before jdk7 shipped) so I'll bet you have older builds on Windows and Linux. If you upgrade them then you should be okay.

braghest
Offline
Joined: 2004-07-09

Indeed I was on b131. Sorry for the trouble.