Bug #84

A annotated remote object must have interfaces

Added by achristian almost 8 years ago. Updated almost 8 years ago.

Status:ClosedStart date:01/11/2011
Priority:NormalDue date:
Assignee:achristian% Done:

100%

Category:Core
Target version:1.2.0

Description

A annotated remote object must have interfaces. Withg 1.1.0 it's possible to create such a remote object:

@SimonRemote
public class Client extends AbstractClient { ... }

public abstract AbstractClient implements IClient { ... }

public interface IClient { ... }

In this case, Client has no direct interfaces, and no interfaces is declared with the annotation.

Passing such a object instance to the server as an callback, will result in weird exceptions telling that the argument types do not match. In fact, the object HAS no remote methods.

-> A check has to be added for valid remote objects, which then throws an "UllegalRemoteObjectException" in case of the remote object is faulty.

History

#1 Updated by achristian almost 8 years ago

  • Status changed from Assigned to Closed

fixed with rev 525

Also available in: Atom PDF