<AWT Dev>  Review Request: JDK-8024987 Copy/paste regression since JDK8 b86
anthony.petrov at oracle.com
Wed Sep 25 04:50:41 PDT 2013
I'm not an expert in DnD, but the code changes look good to me.
On 09/23/2013 08:22 PM, Petr Pchelko wrote:
> Hello, AWT Team.
> Please review the fix for the following issue:
> The fix is available at:
> This is a regression of the following fix: https://bugs.openjdk.java.net/browse/JDK-7075105
> As a part of that fix the SystemFlavorMap class was refactored. As a part of that refactoring the nativeToFlavor and flavorToNative cache was updated. Before it was storing DataFlavor<->String mapping for non-text types and Mime<->String mapping for text types. After the refactoring it was unified, but some code was not updated, it was still trying to find a native format in a cache using Mime type, not the DataFlavor. I have updated that code (see usages of getAllNativesForType: lines 702, 710, 746). Also I have comletely generified the SystemFlavorMap class, so that such errors could never happen again.
> Testing: netbeans works fine now, I've run all regression test for Clipboard and datatransfer on Mac and Windows. No new failures.
> With best regards. Petr.
More information about the awt-dev