0 Replies Latest reply on Jul 15, 2014 8:01 PM by mattbishop

    When does a superclass' methods get resolved by Javassist?

    mattbishop

      I have an existing class that I want to use as a superclass for a new class definition.

       

      CtClass ctNewHandlerClass = ClassPool.getDefault().makeClass(newClassname, ctExistingClass);

       

       

      Something troubling is that this new ctClass has none of the inherited methods in ctExistingClass. In other words:

       

       

           LOG.info("class methods are ", Arrays.toString(ctNewHandlerClass.getMethods()));

       

       

      ... returns an empty array. When does javassist resolve the superclass' methods?