Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: apt
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
Hacking the system class loader like currently in AptUtils is bad:
Method method = URLClassLoader.class.getDeclaredMethod( "addURL", new Class[] { URL.class } ); method.setAccessible( true ); method.invoke( ClassLoader.getSystemClassLoader(), new Object[] { toolsJar.toURL() } );
In particular, this won't work with the class loader boundaries in Maven 3.x. See also TOBAGO-256 for a related issue.
Instead of hacking other people's class loaders, the plugin should create its own class loader.
Issue Links
- relates to
-
MWEBLOGIC-10
Fix tools.jar support for some jdk 1.6 installations
-
Activity
Benjamin Bentmann
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Benjamin Bentmann [ bentmann ] | |
| Resolution | Fixed [ 1 ] |
Benjamin Bentmann
made changes -
| Link |
This issue relates to |