* Moved workaround for #451 to first possible position main of client.

This commit is contained in:
LevelX2 2014-08-28 01:30:04 +02:00
parent 6d1f2515d7
commit ee5831bdc9

View file

@ -172,9 +172,6 @@ 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
@ -1091,9 +1088,10 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
* @param args the command line arguments
*/
public static void main(final String args[]) {
// Workaround for #451
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
startTime = System.currentTimeMillis();
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread t, Throwable e) {