gentry: primitive java generation working