Potential memory leak in Java interface handling
------------------------------------------------
Key: TUSCANY-3312
URL: https://issues.apache.org/jira/browse/TUSCANY-3312
Project: Tuscany
Issue Type: Bug
Components: Java SCA Java Implementation Extension
Affects Versions: Java-SCA-1.5.1
Environment: All
Reporter: Simon Laws
Fix For: Java-SCA-1.5.2
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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.