I am facing an issue in context of IBM's WSDL2Java but let me describe with simple example.
Class Stub {
void printValue(String val){
System.out.println(val);
}
}
Interface Printer {
boolean printValue(String val) throws Exception;
}
Class myPrinter extends Stub implements Printer{
boolean printValue(String val) throws Exception{
//Implementation here
}
}
myPrinter class will not compile now because of incompatible return type error. This is because compiler gives priority to parent class method which is fine and logical. But I would like suggestions on how can I make myPrinter class valid without touching Stub class and Printer interface and at the same time implement the printValue from interface in my class.