Browse Source

fix IAE from Java 9 #23

master
Konstantin Bulenkov 7 years ago
parent
commit
b4e523836d
  1. 4
      src/com/bulenkov/darcula/DarculaLaf.java

4
src/com/bulenkov/darcula/DarculaLaf.java

@ -75,7 +75,7 @@ public final class DarculaLaf extends BasicLookAndFeel {
} }
@SuppressWarnings("UnusedParameters") @SuppressWarnings("UnusedParameters")
private static void log(Exception e) { private static void log(Throwable e) {
//everything is gonna be alright //everything is gonna be alright
//e.printStackTrace(); //e.printStackTrace();
} }
@ -130,7 +130,7 @@ public final class DarculaLaf extends BasicLookAndFeel {
keyField.setAccessible(true); keyField.setAccessible(true);
final Object key = keyField.get(null); final Object key = keyField.get(null);
AppContext.getAppContext().put(key, defaultStyles); AppContext.getAppContext().put(key, defaultStyles);
} catch (Exception e) { } catch (Throwable e) {
log(e); log(e);
} }
} }

Loading…
Cancel
Save