Annotations on extended dimension in method declarations.

Srikanth S Adayapalam srikanth_sankaran at
Tue Jan 29 21:25:37 PST 2013

No, only in method declaration syntax. In other places, the extended 
dimensions *do* play
a useful role, in enabling declaration of multiple variables in the same 
line, with the different variables
having different types.

int x, y[];  // x is an integer, while y is an int []

In the case of method declaration, the extra dimensions have no useful 
role to play are just
a lingering nuisance.


Michael Ernst <mernst at> wrote on 01/30/2013 10:44:12 AM:

> From: Michael Ernst <mernst at>
> To: Srikanth S Adayapalam/India/IBM at IBMIN, 
> Cc: type-annotations-spec-experts <type-annotations-spec-
> experts at>
> Date: 01/30/2013 10:43 AM
> Subject: Re: Annotations on extended dimension in method declarations.
> Srikanth-
> Do you propose to forbid type annotations on arrays only in the method
> declaration syntax?  Or do you also propose to forbid them in the 
> declaration syntax when they follow the identifier?  Your email 
> MethodDeclaratorRest and InterfaceMethodDeclaratorRest but not
> VariableDeclaratorRest, ConstantDeclaratorRest, or VariableDeclaratorId.
>            Thanks,
>           -Mike

More information about the type-annotations-spec-experts mailing list