Request for review 7147066: [macosx] FileDialog.getDirectory() returns incorrect directory
dmitry.cherepanov at oracle.com
Tue Feb 28 14:01:33 PST 2012
Mike Swingler wrote:
> On Feb 27, 2012, at 2:45 PM, Dmitry Cherepanov wrote:
>> Here's a fix for two regressions caused by the changes for the multiple file selection support  (7124337). The fix adds an additional check "result == NSOKButton" to avoid the exception "attempt to insert nil object from objects". Also after the fix, the file dialog returns a string constructed from -[NSURL path] (without the file protocol) as it was before the fix for 7124337.
>>  http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/0e2f3e494814
> Dmitry, in this case you want to use JNFNormalizedJavaStringForPath() instead of JNFNSToJavaString() which will correctly handle the translation from HFS's decomposed UTF8 strings to Java's precomposed UTF8 strings.
Thanks for the suggestion. Here's new webrev -
> Mike Swingler
> Apple Inc.
More information about the macosx-port-dev