[jvm] Remove some outdated / unused slots.
[jvm] Fix some warnings.