JavaHandler methods need to match

Makes the tests compile and pass.