Hi devs,

I come thought an issue with Java 8. Under certain conditions the compiler
[1] bind to another method (an overload), and crash at runtime.

The problem is demonstrated here:
https://gist.github.com/sebfz1/6235c5545e7335985549

You will easily recognize that Wicket has the same construction. There are
workarounds from the user perspective, but I have no fix for Wicket to
prevent this. For instance, such overload does not solve the issue:

void add(Behavior behavior, Behavior... behaviors)

I was thinking opening a bug to jvm vendors, but previous complains about
varargs inference were solved as "not a bug".

What are you thoughts?

Thanks in advance,
Sebastien.

[1] openjdk, but seems to also be the case with oracle's jdk

Reply via email to