java lib: verify still compiles on all platforms