All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.mybatis.runtime.graal.DefineClassHelperSubstitution Maven / Gradle / Ivy

There is a newer version: 2.2.4
Show newest version
package io.quarkiverse.mybatis.runtime.graal;

import java.lang.invoke.MethodHandles;

import org.apache.ibatis.javassist.CannotCompileException;
import org.apache.ibatis.javassist.util.proxy.DefineClassHelper;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import com.oracle.svm.core.jdk.JDK8OrEarlier;

@TargetClass(value = DefineClassHelper.class, onlyWith = JDK8OrEarlier.class)
final public class DefineClassHelperSubstitution {

    @Substitute
    public static Class toClass(MethodHandles.Lookup lookup, byte[] bcode) throws CannotCompileException {
        throw new CannotCompileException("Not support");
    }

    @Substitute
    static Class toPublicClass(String className, byte[] bcode) throws CannotCompileException {
        throw new CannotCompileException("Not support");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy