Skip to content

Commit

Permalink
comment out code that is unbuildable using java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjefferson committed Feb 27, 2019
1 parent aa8a2f0 commit 7fafaa3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ protected void executeInJvm(String className, List args, List cpEntries, boolean
}

ClassLoader parent = null;
try
/*try
{
parent = ClassLoader.getPlatformClassLoader();
getLog().debug("Java 9 or higher detected. Using modern classloader strategy.");
}
catch (NoSuchMethodError e)
{
getLog().debug("Java 8 or older detected. Using legacy classloader strategy.");
}
}*/
URLClassLoader loader = new URLClassLoader(urls, parent);
Class c = loader.loadClass(className);
Method m = c.getMethod("main", new Class[] { String[].class });
Expand Down

0 comments on commit 7fafaa3

Please sign in to comment.