ClassLoader Fix
This resolves an issue with the String Decrypter plugins
This commit is contained in:
parent
0a41fd24c8
commit
683207d4b0
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue