The compiler rejects <void>this/super().

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Mar 8 05:15:25 PST 2012


On 08/03/12 09:46, bitter_fox wrote:
> class Main
> {
>      public<throws E>  Main(Object o) {}
>
>      public Main()
>      {
>          <void>this(null); // Illegal
>      }
> }
>
Nicely spotted - thanks!

Maurizio


More information about the lambda-dev mailing list