From 6ba1c39ce25bd93ce538b24c451f6bf471997658 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 1 Dec 2016 12:39:58 +0100 Subject: [PATCH 1/3] Fix opening of preference dialog with Java 9 --- CHANGELOG.md | 1 + .../java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a8a479da40..2f91bc30268 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# - We fixed an issue which prevented that a database was saved successfully if JabRef failed to generate new BibTeX-keys [#2285](https://github.com/JabRef/jabref/issues/2285). - We fixed an issue when JabRef restores its session and a shared database was used: The error message "No suitable driver found" will not appear. - Update check now correctly notifies about new release if development version is used. [#2298](https://github.com/JabRef/jabref/issues/2298) +- We fixed an issue which prevented the preference dialog to open on systems with Java 9. ### Removed diff --git a/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java b/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java index 7547effefbd..20fbf34ab49 100644 --- a/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java +++ b/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java @@ -63,8 +63,9 @@ public static List getAvailableLookAndFeels() { // Try to find L&F Class.forName(l); lookAndFeels.add(l); - } catch (ClassNotFoundException ignored) { - // Ignored + } catch (ClassNotFoundException|IllegalAccessError ignored) { + // LookAndFeel class does not exists or we don't have rights to access it + // Ignore it } } return lookAndFeels; From f793e898c6ec10d3f73b23d4a176f1757d81ca30 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 1 Dec 2016 17:45:13 +0100 Subject: [PATCH 2/3] Fix typo --- .../java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java b/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java index 20fbf34ab49..a86c6915fb9 100644 --- a/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java +++ b/src/main/java/net/sf/jabref/gui/preftabs/AppearancePrefsTab.java @@ -64,7 +64,7 @@ public static List getAvailableLookAndFeels() { Class.forName(l); lookAndFeels.add(l); } catch (ClassNotFoundException|IllegalAccessError ignored) { - // LookAndFeel class does not exists or we don't have rights to access it + // LookAndFeel class does not exist or we don't have rights to access it // Ignore it } } From ba555ee91fa78470d31ae7f2ee9a9c851a23aef8 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 1 Dec 2016 17:56:03 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f91bc30268..bb79a5ebfc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,8 +20,8 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# - We fixed an issue where the file permissions of the .bib-file were changed upon saving [#2279](https://github.com/JabRef/jabref/issues/2279). - We fixed an issue which prevented that a database was saved successfully if JabRef failed to generate new BibTeX-keys [#2285](https://github.com/JabRef/jabref/issues/2285). - We fixed an issue when JabRef restores its session and a shared database was used: The error message "No suitable driver found" will not appear. -- Update check now correctly notifies about new release if development version is used. [#2298](https://github.com/JabRef/jabref/issues/2298) - We fixed an issue which prevented the preference dialog to open on systems with Java 9. +- Update check now correctly notifies about new release if development version is used. [#2298](https://github.com/JabRef/jabref/issues/2298) ### Removed