Skip to content

Commit

Permalink
Merge pull request AdoptOpenJDK#549 from AdoptOpenJDK/sun-misc-error
Browse files Browse the repository at this point in the history
Do not log missing sun.misc.Launcher as error
  • Loading branch information
sclassen authored Dec 12, 2019
2 parents 72b3042 + e60c396 commit 9ae91d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public static ImageIcon getSecureImageIcon(final String resource) {
final ClassLoader cl = (ClassLoader) m.invoke(obj);

return new ImageIcon(cl.getResource(resource));
} catch (Exception ex) {
LOG.error("sun.misc.Launcher not found. Running jdk9 or higher? Using insecure BootClassLoader", ex);
} catch (final Exception e) {
LOG.debug("sun.misc.Launcher not found. Looks like app is running jdk9 or higher");
return new ImageIcon(ClassLoader.getSystemClassLoader().getParent().getResource(resource));
}
}
Expand Down

0 comments on commit 9ae91d7

Please sign in to comment.