question about JDK-8063054 (incorrect raw type warnings for method references)

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Feb 16 10:35:36 UTC 2017



On 16/02/17 02:33, Liam Miller-Cushon wrote:
> I think the fix might be as simple as replacing 
> `!desc.getParameterTypes().head.isParameterized()` with something that 
> handles capture variables.
Hi Liam,
I think your analysis is correct - isParameterized would not work for 
non-class types, so something else is required here. I believe 
intersection types like Serializable & Comparable<Foo> might also end up 
with the same problem - and, presumably, synthetic inner class types.

Maurizio


More information about the compiler-dev mailing list