Problems with "type swallowing" in sub-interfaces of ListModel caused by adding Generics in Java 7 (x-post from swing-dev)

Ismael Juma mlists at juma.me.uk
Wed Mar 2 02:04:57 PST 2011


On Mon, Jan 17, 2011 at 3:03 PM, steve mcjones
<steve.mcjones at googlemail.com> wrote:
> But is there a reason why javax.swing.ListModel was generified, but not its
> sub-interfaces like ComboBoxModel?
>
> This "type swallowing" actually caused non-fixable compiler errors in Scala,
> where the scala-swing package can't be built anymore against the Java 7 code
> base.

Given that Java 7 is fast approaching, it would be nice to get an
answer to this.

Best,
Ismael


More information about the jdk7-dev mailing list