-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.3.0
-
generic
-
generic
Name: krC82822 Date: 11/29/2000
29 Nov 2000, eval1127@eng -- see also # 4322176
Compiling this example yields an error in RogerB:
( 85 )% rmic -iiop InterfaceA
( 86 )% rmic -iiop RogerA
( 87 )% rmic -iiop RogerB
error: RogerB is not a valid remote implementation: has no remote interfaces.
1 error
Changed RogerA and RogerB's a1() declarations to explicit throw RemoteException.
No change in rmic -iiop results.
-------------
herbie: 868> $ALT_BOOTDIR/bin/java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, interpreted mode)
I am getting an error in rmic trying to generate RMI-IIOP artifacts for an
implementation class.
Here is source code that reproduces the problem. If I run RogerA through rmic,
no problem. However, it barfs on RogerB complaining that it has no remote
interfaces. Apparently, rmic does not recognize that RogerB inherits the
interfaces of RogerA.
herbie: 867> $ALT_BOOTDIR/bin/rmic -always -keep -d . -iiop RogerB
error: RogerB is not a valid remote implementation: has no remote interfaces.
1 error
public interface InterfaceA extends java.rmi.Remote {
void a1() throws java.rmi.RemoteException;
}
public class RogerA implements InterfaceA {
public void a1() { }
}
public class RogerB extends RogerA {
public void a1() { }
}
(Review ID: 112937)
======================================================================
- duplicates
-
JDK-4322176 Repeated interface method declarations confuse RMI-IIOP compiler
-
- Resolved
-