Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Java-SCA-1.5.1
-
None
-
All
Description
In JavaInterfaceFactoryImpl there's a cache....
private Map<Class<?>, JavaInterface> cache = Collections.synchronizedMap(new WeakHashMap<Class<?>, JavaInterface>());
But
public class JavaInterfaceImpl extends InterfaceImpl implements JavaInterface {
private String className;
private Class<?> javaClass;
So it seems that Class<?> javaClass; should really be a weak reference