Method Java.parameterNames re-throws original exception

And few other improvements suggested by IDEA