Bug #206

Nested remote interface definition not supported

Added by achristian 24 days ago.

Status:NewStart date:12/29/2017
Priority:NormalDue date:
Assignee:achristian% Done:

0%

Category:Core
Target version:1.3.1

Description

“ProcessMessageRunnable.processNameLookup” contains a bug:

On lines 319 and 327 it calls “Class.getCanonicalName()”. I believe this is in error, as it should use simply “Class.getName()”,

If you use a nested class for your `ServerInterface` in your example: http://dev.root1.de/projects/simon/wiki/Sample_helloworld110

Eg:

package com.example

Class Server {

public static void main(){
//code largely as the main method for server is on your wiki
}
interface ServerAPI { public void stuff() }
@SimonRemote(ServerAPI.class)
class ServerAPIImpl implements ServerAPI { @Override public void stuff() }

}

Then SIMON will attempt to load “com.example.Server.ServerAPI” (which doesn’t exist) rather than the appropriate “com.example.Server$ServerAPI”.

Also available in: Atom PDF