From 4ac785e695238e94653d77e57dbcad5fb1bf89be Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 7 Apr 2022 00:35:23 +0100 Subject: [PATCH] JAL-3991 Made info displayed only when needed (Java 11+) --- src/jalview/gui/Desktop.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 5b0d45a..ccfb1d2 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -121,6 +121,7 @@ import jalview.urls.IdOrgSettings; import jalview.util.BrowserLauncher; import jalview.util.ChannelProperties; import jalview.util.ImageMaker.TYPE; +import jalview.util.LaunchUtils; import jalview.util.MessageManager; import jalview.util.Platform; import jalview.util.ShortcutKeyMaskExWrapper; @@ -413,8 +414,11 @@ 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."); + if (LaunchUtils.getJavaVersion() >= 11) + { + 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