2006-05-09 Audrius Meskauskas <[EMAIL PROTECTED]>
PR 27517
* tools/gnu/classpath/tools/giop/grmic/GiopRmicCompiler.java (compile):
Do not demand all thrown exceptions to be an instance of
RemoteException.
Index: GiopRmicCompiler.java
===================================================================
RCS file: /sources/classpath/classpath/tools/gnu/classpath/tools/giop/grmic/GiopRmicCompiler.java,v
retrieving revision 1.6
diff -u -r1.6 GiopRmicCompiler.java
--- GiopRmicCompiler.java 2 Apr 2006 17:03:02 -0000 1.6
+++ GiopRmicCompiler.java 9 May 2006 14:14:47 -0000
@@ -193,12 +193,12 @@
remEx = true;
break;
}
- if (! remEx && !force)
- throw new CompilationError(m[i].getName() + ", defined in "
- + c.getName()
- + ", does not throw "
- + RemoteException.class.getName());
- }
+ }
+ if (! remEx && !force)
+ throw new CompilationError(m[i].getName() + ", defined in "
+ + c.getName()
+ + ", does not throw "
+ + RemoteException.class.getName());
AbstractMethodGenerator mm = createMethodGenerator(m[i]);
methods.add(mm);
}