git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be56829
)
JAL-3210 JAL-3130 can't read java.specification.version in JalviewJS
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 5 Nov 2019 17:09:20 +0000
(17:09 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 5 Nov 2019 17:09:20 +0000
(17:09 +0000)
src/jalview/jbgui/GDesktop.java
patch
|
blob
|
history
diff --git
a/src/jalview/jbgui/GDesktop.java
b/src/jalview/jbgui/GDesktop.java
index
b6f3f8c
..
e4a5905
100755
(executable)
--- a/
src/jalview/jbgui/GDesktop.java
+++ b/
src/jalview/jbgui/GDesktop.java
@@
-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);