Class FinalRemovalAgent

java.lang.Object
com.hazelcast.buildutils.FinalRemovalAgent

public final class FinalRemovalAgent extends Object
  • Method Details

    • premain

      public static void premain(String argument, 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).