Notes on implementing concise calls to constructors with type	parameters
    Ulf Zibis 
    Ulf.Zibis at gmx.de
       
    Thu May 14 16:00:32 PDT 2009
    
    
  
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.
-Ulf
    
    
More information about the coin-dev
mailing list