1 Reply Latest reply on Aug 11, 2010 11:49 PM by mksong

    Decompile

    mksong

      Is Javassist's API able to support decompile a class file to the corresponding source file?

       

      For example,

       

      ClassPool pool = ClassPool.getDefault();
      pool.insertClassPath(classpath);
      CtClass cc = pool.get(classname);

      /* Add or remove somethings */
      cc.writeFile(classpath);

      cc.writeSource(classpath); <---