When compiling JOnAS I got error messages from GiopRmicCompiler complaining that a method does not throw RemoteException. I checked and saw that the method actually _does_ throw RemoteException, but also other exceptions. The way the check is written in the source (see the "break") i suspect the intended behaviour was to check if _any_ thrown exception class is assignable to RemoteException. However, the current code checks if _all_ thrown exception classes are assignable to RemoteException. I attach a patch that changes the behaviour to the former. With this patch (and one adding the -classpath argument to grmic) I was able to compile JOnAS.
Created attachment 11420 [details] Patch to fix thrown exceptions check Patch that changes the check from "ALL thrown exceptions are RemoteExceptions" to "AT LEAST ONE thrown exception is a RemoteException".
Audrius can you take a look at this? I believe Edwin's evaluation is correct.
For sure. Thanks a lot for reporting this. 2006-05-09 Audrius Meskauskas <AudriusA@Bioinformatics.org> PR 27517 * tools/gnu/classpath/tools/giop/grmic/GiopRmicCompiler.java (compile): Do not demand all thrown exceptions to be an instance of RemoteException.