I see there's also an "web bug incident" (so not public) that was closed out as a dup of that even though it was being reported against Linux on JDK 8 GA so is not likely a duplicate.
I'll forward you that.

-phil.

On 7/23/14 11:37 AM, Petr Pchelko wrote:
Hello, Hendrik.

Interesting, because there was a similar problem that’s been fixed in 7u60 and 
8:
https://bugs.openjdk.java.net/browse/JDK-7173464

I’ll have a look at this, thank you for your report.

With best regards. Petr.

On Jul 23, 2014, at 9:32 PM, Hendrik Schreiber <h...@tagtraum.com> wrote:

Hi,

on calling Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null) I 
get the following exception:

java.lang.IllegalArgumentException: Comparison method violates its general 
contract!
        at java.util.TimSort.mergeHi(TimSort.java:895)
        at java.util.TimSort.mergeAt(TimSort.java:512)
        at java.util.TimSort.mergeCollapse(TimSort.java:437)
        at java.util.TimSort.sort(TimSort.java:241)
        at java.util.Arrays.sort(Arrays.java:1438)
        at 
sun.awt.datatransfer.DataTransferer.setToSortedDataFlavorArray(DataTransferer.java:2399)
        at 
sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:101)
        at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:144)

I was not able to reproduce this, but as this happened on startup, I guess it 
has to do with whatever was already in the system clipboard..
Perhaps somebody wants to take a look at this.

Cheers,

-hendrik

java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b23)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b22, mixed mode)

Reply via email to