java/translator: Fix interface method resolution

Signed-off-by: Pekka Enberg <penberg@iki.fi>