Well, if a method is declared to throw A, and B
extends A, then the method can also throw B, regardless of whether B appears in
the throws clause. So this:
public void myMethod() throws A, B;
is semantically equivalent to this:
public void myMethod() throws A;
So it's entirely possible that the compiler ignores B in
throws clause, and generates bytecode equivalent to the first declaration. I'm
not a compiler expert, so I don't know whether that actually happens, I'm just
saying it's possible. In that case java2wsdl would have no way of knowing that
the source code also included B in the throws clause.
- Rob
|
Title: Exception hierarchies in WSDL
- Exception hierarchies in WSDL Jörn Gebhardt
- Robert Lowe