Originally posted by Peter den Haan:
This implies that <code>Data instanceof Remote</code>, even though it is not a remote object at all. This breaks the <code>Remote</code> contract. IMHO, better strip the <code>Remote</code> out of <code>DBInterface</code>, and add a <code>DBRemoteInterface extends DBInterface, Remote</code>.
- Peter
But you can. See the JLS, 9.1.2.
- Peter
Originally posted by Peter den Haan:
This implies that <code>Data instanceof Remote</code>, even though it is not a remote object at all. This breaks the <code>Remote</code> contract. IMHO, better strip the <code>Remote</code> out of <code>DBInterface</code>, and add a <code>DBRemoteInterface extends DBInterface, Remote</code>.
- Peter