Class FinalRemovalAgent


  • public final class FinalRemovalAgent
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void premain​(java.lang.String argument, java.lang.instrument.Instrumentation instrumentation)
      When running a compatibility test, all com.hazelcast.* classes are transformed so that none are loaded with final modifier to allow subclass proxying.
      • Methods inherited from class java.lang.Object

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

      • premain

        public static void premain​(java.lang.String argument,
                                   java.lang.instrument.Instrumentation instrumentation)
        When running a compatibility test, all com.hazelcast.* classes are transformed so that none are loaded with final modifier to allow subclass proxying. We configure the agent with REDEFINE type strategy and NoOp initialization strategy. This allows for the redefinition of the type (instead of default REBASE strategy) without adding any methods (which result in modifying Serializable classes' serialVersionUid). For more details see ByteBuddy.rebase(Class) vs ByteBuddy.redefine(Class).