From 40384b304b6a6ce09084718f900aa6b4bf7e5e73 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 1 Dec 2016 17:56:18 +0100 Subject: [PATCH] Fix opening of preference dialog with Java 9 (#2329) * Fix opening of preference dialog with Java 9 * Fix typo * Update CHANGELOG.md --- 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 9606bf533af..98743e89c0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ 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. +- 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) - Fixed [#2311](https://github.com/JabRef/jabref/issues/2311): The DBLP fetcher has been rewritten and is working again. - Fixed [#2273](https://github.com/JabRef/jabref/issues/2273): Export via commandline in no-gui mode is now working again. 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..a86c6915fb9 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 exist or we don't have rights to access it + // Ignore it } } return lookAndFeels;