Use getter for consistency

The JVM code contains lots of references to nonexistent functions, so presumably noone is using them, and if they did try to use them, it would just crash anyway.