From: Ben Soares Date: Wed, 6 Apr 2022 23:28:24 +0000 (+0100) Subject: JAL-3991 Added information output about the slightly alarming 'WARNING: An illegal... X-Git-Tag: Release_2_11_2_6~28^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7190c3c673890ea5d282b36ac89a7b15be522206;p=jalview.git 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. --- 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();