Skip to content

Commit

Permalink
bugfix: java.lang.ClassCastException: symjava.bytecode.JITFunc_7ac5b8…
Browse files Browse the repository at this point in the history
…091de04e278e383ab926c5f057 cannot be cast to symjava.bytecode.BytecodeFunc
  • Loading branch information
Yueming Liu committed May 30, 2018
1 parent 5c52909 commit ee53447
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/symjava/symbolic/utils/FuncClassLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

import com.sun.org.apache.bcel.internal.generic.ClassGen;

import symjava.bytecode.BytecodeFunc;

public class FuncClassLoader<T> extends ClassLoader {

public FuncClassLoader() {
super(Thread.currentThread().getContextClassLoader());
}
//
// public FuncClassLoader(ClassLoader parent) {
// super(parent);
// }

/**
* Return an instance from a ClassGen object
*
Expand All @@ -24,4 +30,4 @@ public T newInstance(ClassGen cg) {
}
return null;
}
}
}

0 comments on commit ee53447

Please sign in to comment.