Skip to content

Commit

Permalink
More likely to have fixed JabRef#526
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus authored and zesaro committed Dec 21, 2015
1 parent 9a964eb commit 97b1859
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 97b1859

Please sign in to comment.