Skip to content

Commit ee53447

Browse files
author
Yueming Liu
committed
bugfix: java.lang.ClassCastException: symjava.bytecode.JITFunc_7ac5b8091de04e278e383ab926c5f057 cannot be cast to symjava.bytecode.BytecodeFunc
1 parent 5c52909 commit ee53447

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/symjava/symbolic/utils/FuncClassLoader.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

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

5-
import symjava.bytecode.BytecodeFunc;
6-
75
public class FuncClassLoader<T> extends ClassLoader {
86

7+
public FuncClassLoader() {
8+
super(Thread.currentThread().getContextClassLoader());
9+
}
10+
//
11+
// public FuncClassLoader(ClassLoader parent) {
12+
// super(parent);
13+
// }
14+
915
/**
1016
* Return an instance from a ClassGen object
1117
*
@@ -24,4 +30,4 @@ public T newInstance(ClassGen cg) {
2430
}
2531
return null;
2632
}
27-
}
33+
}

0 commit comments

Comments
 (0)