NPE inisSignaturePolymorphic(jdk.compiler at 9-internal/Types.java:1079)

Alex Buckley alex.buckley at oracle.com
Wed Oct 26 18:12:03 UTC 2016


On 10/26/2016 7:28 AM, Ronald Servant wrote:
>>My reading of this situation: the spec mandates that a poly sig method
>>must have a varargs argument Object... - that will stay the same.
>>
>>On the other hand, javac will crash whenever it finds a native method in
>>MethodHandle.java that has no arguments. That must be fixed. But, after
>>the fix, the 0-ary method will NOT be considered as a poly signature
>>method by javac.
>
>>Maurizio
>
> Agreed. There was a bug in javac when trying to decide if the method had
> a polymorphic signature. I'm not asking that we change the spec. :)
> Ron

Thanks Ron, that's all the clarification I was looking for.

Alex


More information about the compiler-dev mailing list