Class PatchBytecodeVersionTo51Transformer

  • All Implemented Interfaces:
    net.bytebuddy.agent.builder.AgentBuilder.Transformer

    public class PatchBytecodeVersionTo51Transformer
    extends java.lang.Object
    implements net.bytebuddy.agent.builder.AgentBuilder.Transformer
    Patches the class file version to 51 (Java 7) in order to support injecting INVOKEDYNAMIC instructions via Advice.WithCustomMapping.bootstrap(java.lang.reflect.Constructor<?>) which is important for indy plugins.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Transformer

        net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice, net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForBuildPlugin
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      net.bytebuddy.dynamic.DynamicType.Builder<?> transform​(net.bytebuddy.dynamic.DynamicType.Builder<?> builder, net.bytebuddy.description.type.TypeDescription typeDescription, java.lang.ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatchBytecodeVersionTo51Transformer

        public PatchBytecodeVersionTo51Transformer()
    • Method Detail

      • transform

        public net.bytebuddy.dynamic.DynamicType.Builder<?> transform​(net.bytebuddy.dynamic.DynamicType.Builder<?> builder,
                                                                      net.bytebuddy.description.type.TypeDescription typeDescription,
                                                                      java.lang.ClassLoader classLoader,
                                                                      net.bytebuddy.utility.JavaModule javaModule)
        Specified by:
        transform in interface net.bytebuddy.agent.builder.AgentBuilder.Transformer