Path#toRealPath different in Mac OS X preview
Path#toRealPath different in Mac OS X preview
October 23, 2011 - 08:08
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.





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.