use of com.ibm.oti.shared.HelperAlreadyDefinedException in project openj9 by eclipse.
the class TokenGetDifferentHelperTest method run.
public void run() {
boolean resultURL = false;
boolean resultURLCP = false;
URLClassPathCreator pathCreator = new URLClassPathCreator("./Pets;");
CustomTokenClassLoader loader = new CustomTokenClassLoader(pathCreator.createURLClassPath());
try {
loader.getURLClasspathHelper();
} catch (HelperAlreadyDefinedException e) {
resultURLCP = true;
} catch (Exception e) {
e.printStackTrace();
}
try {
loader.getURLHelper();
} catch (HelperAlreadyDefinedException e) {
resultURL = true;
} catch (Exception e) {
e.printStackTrace();
}
if ((resultURLCP == true) && (resultURL == true)) {
System.out.println("\nTEST PASSED");
} else {
System.out.println("\nTEST FAILED");
}
}
use of com.ibm.oti.shared.HelperAlreadyDefinedException in project openj9 by eclipse.
the class CustomURLClassLoaderNonConfirming method getHelper.
public boolean getHelper() {
SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
SharedClassURLClasspathHelper newHelper = null;
try {
newHelper = schFactory.getURLClasspathHelper(this, orgUrls);
} catch (HelperAlreadyDefinedException e) {
return false;
}
if (newHelper.equals(scHelper)) {
return true;
} else {
return false;
}
}
use of com.ibm.oti.shared.HelperAlreadyDefinedException in project openj9 by eclipse.
the class CustomPartitioningURLCL method getHelper.
public boolean getHelper() {
SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
SharedClassURLClasspathHelper newHelper = null;
try {
newHelper = schFactory.getURLClasspathHelper(this, orgUrls);
} catch (HelperAlreadyDefinedException e) {
return false;
}
if (newHelper.equals(scHelper)) {
return true;
} else {
return false;
}
}
use of com.ibm.oti.shared.HelperAlreadyDefinedException in project openj9 by eclipse.
the class CustomURLClassLoader method getHelper.
public boolean getHelper() {
SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
SharedClassURLClasspathHelper newHelper = null;
try {
newHelper = schFactory.getURLClasspathHelper(this, orgUrls);
} catch (HelperAlreadyDefinedException e) {
return false;
}
if (newHelper.equals(scHelper)) {
return true;
} else {
return false;
}
}
Aggregations