Notes on implementing concise calls to constructors with type parameters
Ulf Zibis
Ulf.Zibis at gmx.de
Fri May 15 01:53:08 PDT 2009
Am 15.05.2009 02:15, Alex Buckley schrieb:
> Ulf Zibis wrote:
>>> Obviously dropping raw types has an impact anywhere that type names
>>> can be used. Since that's every class, interface, and variable
>>> declaration, I'm not sure we need to spend much time calculating how
>>> it would affect people moving pre-1.5 code to 1.7 - it obviously
>>> stops them cold.
>>
>> It should have stopped them more cold in experiencing a consequently
>> occurring CCE at runtime. ;-)
>
> Which they knew might happen because of the unchecked warning at the
> assignment, giving them a chance to identify potential heap pollution
> and upgrade certain uses of raw types at their own pace.
>
With this same argument, following code should similar output a warning
instead of a compile time error:
int i;
...
if (i == 7) { // error: variable not initialized
...
}
-Ulf
More information about the coin-dev
mailing list