Notes on implementing concise calls to constructors with type parameters
Alex.Buckley at Sun.COM
Thu May 14 16:38:04 PDT 2009
Ulf Zibis wrote:
> Am 15.05.2009 00:51, Alex Buckley schrieb:
>> Ulf, you ask why:
>> Cell<String> cs = new Cell(1); //unchecked warning
>> String s = cs.x; //CCE at runtime
>> cannot be rejected at compile-time, presumably with an error rather
>> than a warning on the assignment.
>> The answer is migration compatibility:
> My guess is, that this problem could be managed by javac option "-source
> 1.7", but I'm not sure if there are some reasons against this.
You're effectively suggesting that migration compatibility be dropped in
JDK7. A language change of this magnitude is far beyond the scope of
More information about the coin-dev