fix Java impl of Boolean