JEP proposal: Improved variance for generic classes and interfaces

John Rose john.r.rose at
Tue Oct 28 03:49:18 UTC 2014

On Oct 27, 2014, at 4:40 PM, Dan Smith <daniel.smith at> wrote:

> Haven't thought much about this, but can't the compiler just generate all the necessary signatures in Bar?
> test(Number)Z: user's implementation
> test(Integer)Z: bridge to test(Number)Z
> test(Object)Z: bridge to test(Number)Z

If we can really go there, perhaps we can bridge int to Integer and vice versa.  And then int to long too.  And varargs.  Slippery slope...  — John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list