Added support to check for illegal use on java.lang.Object methods