The problem is that the code in JohannahServer relies on a specific invocation order of the annotated methods. As these are discovered by reflective means using Class::getDeclaredMethods(), and there is no guaranteed order in this according to the Java specification, I've rewritten the code to work independend of it using Java 8 closures.
The problem is that the code in
JohannahServer
relies on a specific invocation order of the annotated methods. As these are discovered by reflective means usingClass::getDeclaredMethods()
, and there is no guaranteed order in this according to the Java specification, I've rewritten the code to work independend of it using Java 8 closures.