adding java type "long" and "java.lang.Long"
change: getDeclaredMethods -> getMethods because methods defined on anchestors ere failed to be called
Merge pull request #2381 from gymora/fix_java_runtime

Fix java runtime (long + inherited methods)