Patching native methods for Java 8 compat

Eventually I'll need to find the documentation for these new
parameters...