JEP proposal: Improved variance for generic classes and interfaces

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


On Oct 27, 2014, at 4:40 PM, Dan Smith <daniel.smith at oracle.com> 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: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20141027/0c561bb6/attachment-0001.html>


More information about the compiler-dev mailing list