I am trying to use Javassist to bytecode manipulation in conjunction with the Instrumentation API. Can we build a CtClass object from bytecodes? Any suggestions would be welcome =)
You can use ClassPool.makeClass(InputStream).
Make a ByteArrayInputStream including your bytecode and pass it to makeClass().