Add const_get to java package Fixes #435