From 7190c3c673890ea5d282b36ac89a7b15be522206 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 7 Apr 2022 00:28:24 +0100 Subject: [PATCH] JAL-3991 Added information output about the slightly alarming 'WARNING: An illegal reflective access operation has occurred' error that occurs for linux users. It can't be avoided so informing the user should help with alarm levels. --- src/jalview/gui/Desktop.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index aeb0fac..5b0d45a 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -20,8 +20,6 @@ */ package jalview.gui; -import java.util.Locale; - import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; @@ -64,6 +62,7 @@ import java.util.HashMap; import java.util.Hashtable; import java.util.List; import java.util.ListIterator; +import java.util.Locale; import java.util.Vector; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @@ -414,6 +413,8 @@ public class Desktop extends jalview.jbgui.GDesktop */ if (Platform.isLinux()) { + jalview.bin.Console.info( + "Linux platform only! You may have the following warning next: \"WARNING: An illegal reflective access operation has occurred\"\nThis is expected and cannot be avoided, sorry about that."); try { Toolkit xToolkit = Toolkit.getDefaultToolkit(); -- 1.7.10.2