EsotericSoftware / kryonet

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

Fix issue where ReflectionListener could not access private methods #98

Closed antag99 closed 9 years ago

antag99 commented 9 years ago

ReflectionListener can currently not access non-visible methods, including public methods declared in anonymous inner classes. This pull request fixes that problem by inserting a call to Method.setAccessible(true) after retrieving the method.