I changed the return type of one method in the interface in the library. It used to be invalid and I changed it to return an object. I did not change the code in my module, since I did not want to do anything with the returned object (it was for another module) I compiled my module with the new jar library and performed unit tests that performed normally, but when I pushed the jar along with the library jar to release and run the module, I get java.lang.NoSuchMethodError for the method that I changed on the interface. I changed the interface as well as the implementation, both are in the bank of the library, and I use spring annotations to embed the implementation object in my module. What is the possible cause of this problem?
source
share