Skip to content

Commit

Permalink
More likely to have fixed #526
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus committed Dec 16, 2015
1 parent d26bf94 commit a81745e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/sf/jabref/openoffice/OOBibBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ private XDesktop simpleBootstrap(String pathToExecutable) throws Exception {

ClassLoader loader = ClassLoader.getSystemClassLoader();
if (loader instanceof URLClassLoader) {
try (URLClassLoader cl = (URLClassLoader) loader) {
Class<URLClassLoader> sysclass = URLClassLoader.class;
URLClassLoader cl = (URLClassLoader) loader;
Class<URLClassLoader> sysclass = URLClassLoader.class;
try {

Method method = sysclass.getDeclaredMethod("addURL", URL.class);
method.setAccessible(true);
Expand Down

0 comments on commit a81745e

Please sign in to comment.