[type-annos-observers] Annotations on extended dimension in method declarations.
Srikanth S Adayapalam
srikanth_sankaran at in.ibm.com
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.
Srikanth.
Michael Ernst <mernst at cs.washington.edu> wrote on 01/30/2013 10:44:12 AM:
> From: Michael Ernst <mernst at cs.washington.edu>
> To: Srikanth S Adayapalam/India/IBM at IBMIN,
> Cc: type-annotations-spec-experts <type-annotations-spec-
> experts at openjdk.java.net>
> 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
variable
> declaration syntax when they follow the identifier? Your email
mentioned
> MethodDeclaratorRest and InterfaceMethodDeclaratorRest but not
> VariableDeclaratorRest, ConstantDeclaratorRest, or VariableDeclaratorId.
>
> Thanks,
>
> -Mike
>
More information about the type-annotations-spec-observers
mailing list