JAL-3210 JAL-3130 can't read java.specification.version in JalviewJS
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 5 Nov 2019 17:09:20 +0000 (17:09 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 5 Nov 2019 17:09:20 +0000 (17:09 +0000)
src/jalview/jbgui/GDesktop.java

index b6f3f8c..e4a5905 100755 (executable)
@@ -366,7 +366,9 @@ public class GDesktop extends JFrame
       }
     });
 
-    Float specversion = Float.parseFloat(System.getProperty("java.specification.version"));
+    Float specversion = Platform.isJS() ? Float.valueOf(8)
+            : Float.parseFloat(
+                    System.getProperty("java.specification.version"));
     
     desktopMenubar.add(FileMenu);
     desktopMenubar.add(toolsMenu);