This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Question for anybody who might have run across this --
We are working with a software package and want to make a modification. There is a class that looks like this:
We want to make a copy of the class in a custom jar file and override just method2. We want to use everything else as the base. We don't have the full source code, but the vendor gave us the method name and signature and we know how to add it to the CLASSPATH. So, what we'd need to do would be this:
That would run all the base methods but run our method2. But that's not working since Eclipse thinks we're extending from ourselves and not the SomeClass that is in the vendor's JAR. Is there a way to do this? Or are we lost?