Search in sources :

Example 1 with SignatureAttribute

use of org.hotswap.agent.javassist.bytecode.SignatureAttribute in project HotswapAgent by HotswapProjects.

the class FieldInitLink method setGenericSignature.

public void setGenericSignature(String sig) {
    ClassFile cf = getClassFile();
    SignatureAttribute sa = new SignatureAttribute(cf.getConstPool(), sig);
    cf.addAttribute(sa);
}
Also used : SignatureAttribute(org.hotswap.agent.javassist.bytecode.SignatureAttribute) ClassFile(org.hotswap.agent.javassist.bytecode.ClassFile)

Aggregations

ClassFile (org.hotswap.agent.javassist.bytecode.ClassFile)1 SignatureAttribute (org.hotswap.agent.javassist.bytecode.SignatureAttribute)1