Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3312

Potential memory leak in Java interface handling

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            simonslaws Simon Laws
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: