NPE in isSignaturePolymorphic(jdk.compiler at 9-internal/Types.java:1079)
Alex Buckley
alex.buckley at oracle.com
Tue Oct 25 20:47:49 UTC 2016
Hi Ronald,
On 10/25/2016 1:02 PM, Ronald Servant wrote:
> The check performed in isSignaturePolymorphic() assumes that all native
> methods in MethodHandle or VarHandle will have at least 1 parameter.
> That true for OpenJDK, but in the J9 implementation, we have native
> methods without parameters. This issue can be reproduced by applying
> patch[1] below.
Just to clarify: you are NOT suggesting that javac should treat
zero-arity native methods in MethodHandle as signature polymorphic, right?
Alex
More information about the compiler-dev
mailing list