@ -144,7 +144,7 @@ public class MavenPluginPlugin implements Plugin<Project> {
@@ -144,7 +144,7 @@ public class MavenPluginPlugin implements Plugin<Project> {
@ -211,7 +211,7 @@ public class MavenPluginPlugin implements Plugin<Project> {
@@ -211,7 +211,7 @@ public class MavenPluginPlugin implements Plugin<Project> {
@ -139,10 +139,10 @@ public class LaunchedURLClassLoader extends URLClassLoader {
@@ -139,10 +139,10 @@ public class LaunchedURLClassLoader extends URLClassLoader {
}
catch(IllegalArgumentExceptionex){
// Tolerate race condition due to being parallel capable
if(getPackage(name)==null){
if(getDefinedPackage(name)==null){
// This should never happen as the IllegalArgumentException indicates
// that the package has already been defined and, therefore,
// getPackage(name) should not return null.
// getDefinedPackage(name) should not return null.
thrownewAssertionError("Package "+name+" has already been defined but it could not be found");
}
}
@ -192,16 +192,17 @@ public class LaunchedURLClassLoader extends URLClassLoader {
@@ -192,16 +192,17 @@ public class LaunchedURLClassLoader extends URLClassLoader {
intlastDot=className.lastIndexOf('.');
if(lastDot>=0){
StringpackageName=className.substring(0,lastDot);
if(getPackage(packageName)==null){
if(getDefinedPackage(packageName)==null){
try{
definePackage(className,packageName);
}
catch(IllegalArgumentExceptionex){
// Tolerate race condition due to being parallel capable
if(getPackage(packageName)==null){
if(getDefinedPackage(packageName)==null){
// This should never happen as the IllegalArgumentException
// indicates that the package has already been defined and,
// therefore, getPackage(name) should not have returned null.
// therefore, getDefinedPackage(name) should not have returned
// null.
thrownewAssertionError(
"Package "+packageName+" has already been defined but it could not be found");