Try to replace an interface or implementation in the jar
Suppose in Hibernate, there is this class “HelloWorldImpl” that is defective. The declaration of the class is as such: public class HelloWorldImpl implements HelloWorld {} Rather than patching HelloWorldImpl directly in the JAR, do this instead: public class GrouperHelloWorld implements HelloWorld {} Leave the JAR. Leave the original Impl. Then, do: hibernateEngine.setHelloWorld(new GrouperHelloWorld()); So long as HelloWorld remains intact, you’d be fine. The trick is to find the actual setHelloWorld() method, and instructing hibernate how to use our impl, rather than the default. Keep the patches inside the Grouper github repo. Update the Javadoc directly in the code. |