coolsarath2002 / kryonet

Automatically exported from code.google.com/p/kryonet
0 stars 0 forks source link

Website's RMI Example is inconsistent with JavaDoc #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit the project website.
https://code.google.com/p/kryonet/#Remote_Method_Invocation

What is the expected output? What do you see instead?

This is what is currently on the site.
~ ~ ~ ~
SomeObject someObject = ObjectSpace.getRemoteObject(connection, 42, 
SomeObject.class);
((RemoteObject)someObject).setNonBlocking(true, true);
someObject.doSomething();
~ ~ ~ ~
This and the other RMI examples depict a setNonBlocking method with two boolean 
args.

However according to the downloaded zip's javadoc, the RemoteObject class has 
two *separate* methods, each with a single boolean arg.

- setNonBlocking( boolean nonBlocking )
- setTransmitReturnValue( boolean transmit )

I assume the javadoc is authoritative. I haven't tried out the library yet.

What version of the product are you using?
KryoNet 2.20

Original issue reported on code.google.com by tvtro...@gmail.com on 3 Oct 2013 at 11:03