Package org.hotswap.agent.javassist.bytecode

Examples of org.hotswap.agent.javassist.bytecode.BadBytecode


    private org.hotswap.agent.javassist.bytecode.analysis.Type typeFromDesc(String desc) throws BadBytecode {
        CtClass clazz = null;
        try {
            clazz = Descriptor.toCtClass(desc, classPool);
        } catch (NotFoundException e) {
            throw new BadBytecode("Could not find class in descriptor [pos = " + lastPos + "]: " + e.getMessage());
        }

        if (clazz == null)
            throw new BadBytecode("Could not obtain type for descriptor [pos = " + lastPos + "]: " + desc);

        return org.hotswap.agent.javassist.bytecode.analysis.Type.get(clazz);
    }
View Full Code Here


        return org.hotswap.agent.javassist.bytecode.analysis.Type.get(clazz);
    }

    private void verifyAssignable(org.hotswap.agent.javassist.bytecode.analysis.Type expected, org.hotswap.agent.javassist.bytecode.analysis.Type type) throws BadBytecode {
        if (!expected.isAssignableFrom(type))
            throw new BadBytecode("Expected type: " + expected + " Got: " + type + " [pos = " + lastPos + "]");
    }
View Full Code Here

TOP

Related Classes of org.hotswap.agent.javassist.bytecode.BadBytecode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.