-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #539 from tobias/java-9-support
Improvements to work with Java 9
- Loading branch information
Showing
4 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package boot; | ||
|
||
import java.net.URL; | ||
import java.net.URLClassLoader; | ||
|
||
// Allows us to have a modifiable ClassLoader without having to call | ||
// .setAccessible on URLClassLoader.addURL(), since that's not allowed | ||
// by default under Java 9 | ||
public class AddableClassLoader extends URLClassLoader { | ||
public AddableClassLoader(URL[] urls, ClassLoader parent) { | ||
super(urls, parent); } | ||
|
||
public void addURL(URL url) { | ||
super.addURL(url); }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters