Proxies do not declare exceptions
Brought to you by:
ptrewhella
I have generated a Proxy class from an interface which
contains a method:
public String getValue(String subKeyName, String
valueName) throws NoSuchKeyException, NoSuchValueException;
The generated proxy method is:
public native java.lang.String
getValue(java.lang.String p0, java.lang.String p1);
which does not declare the exceptions. When my native
code throws an exception, it comes back to Java as an
uncaught exception of type java.lang.Object (Sun JDK
1.3.1_02 on Windows) which causes a program crash
Proxy methods should throw the same exceptions as the
Java interfaces.
Logged In: YES
user_id=44882
When I say proxy I really mean generated Java peer