From 175280b38178e0233316e7de148f2aef66a98368 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 14 Aug 2014 11:49:46 +0200 Subject: [PATCH] Setting java.util.Arrays.useLegacyMergeSort=true in client main to avoid Comparison method violates its general contract of swing class. (Fixes #451). --- Mage.Client/src/main/java/mage/client/MageFrame.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.java b/Mage.Client/src/main/java/mage/client/MageFrame.java index 5e3bdc3201..8e0de5ec23 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.java +++ b/Mage.Client/src/main/java/mage/client/MageFrame.java @@ -172,7 +172,9 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { setTitle("XMage, version " + version); clientId = UUID.randomUUID(); - + // Workaround for #451 + System.setProperty("java.util.Arrays.useLegacyMergeSort", "true"); + EDTExceptionHandler.registerExceptionHandler(); addWindowListener(new WindowAdapter() { @Override