[java] Fixed Java WeakMap#keys(). Ping #3064