EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 419 forks source link

Website's RMI Example is inconsistent with JavaDoc #42

Open ghost opened 10 years ago

ghost commented 10 years ago

From tvtro...@gmail.com on October 04, 2013 01:03:15

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: http://code.google.com/p/kryonet/issues/detail?id=41