I was just stuck in the middle... We were doing some enhancement and we are writing some code in the package, which is using some 3rd Party APIs.
Those 3rd Party APIs have changed and our new version has to be compatible with it.
The existing code has couple of import statments, which is being used in this class. We need to add some more to that, but obviously since its 3rd Party, we cannot use that in our build, hence our code doesnt compile.
So my question is how do I load those classes (which are there in import as well with a diff package structure, but should use my newly loaded classes
import has pack1.pack2.pack3.javaclass and I want to load box1.box3.box10.javaclass
Putting those in Class.forName(".........") in a static block wouldnt serve the purpose...
Is it possible, like for compile time pack1.pack2.pack3.javaclass gets used and at runtime box1.box3.box10.javaclass gets applied.
My only other choice is.... has to get approval from a series of mgmt chain for adding 3rd party in the build....