ClassLoader Fix

This resolves an issue with the String Decrypter plugins
This commit is contained in:
Konloch 2021-07-23 15:34:26 -07:00
parent 0a41fd24c8
commit 683207d4b0

View file

@ -78,9 +78,17 @@ public class BCV
*/
public static Class<?> loadClassIntoClassLoader(ClassNode cn)
{
if(cn == null)
return null;
getClassNodeLoader().addClass(cn);
try {
try
{
//TODO this should be rebuilding the class loader each time a new resource has been added or removed
if(cl == null)
loadClassesIntoClassLoader();
return cl.loadClass(cn.name);
} catch (Exception classLoadException) {
the.bytecode.club.bytecodeviewer.BytecodeViewer.handleException(classLoadException);