3 Replies Latest reply on Jun 27, 2008 10:41 AM by Flavia Rainone

    Translatable ClassLoaders

    Flavia Rainone Master


      Why does AspectManager enforces the class loader to be Translatable in order to use it for classpool creation (lines 770-778)?

      public ClassPool findClassPool(ClassLoader cl)
       if (!(cl instanceof Translatable))
       // findClassPool has problems with boot and system classes.
       return registerClassLoader(SecurityActions.getContextClassLoader());
       return registerClassLoader(cl);

      I can't find any reference to this interface (except for the one above), nor any references to the method this interface declares (getResourceLocally). I have searched trunk and the class pool classes in javassist.

      This is causing problems for standalone users with multi-classloader environments: