bug with overriding/implementing from Java method fixed
(cherry picked from commit 9f4e456)