Review completely the javalib

Shouldn't this call the impl to avoid the bounds check?