[records] C-style array declaration of record components - sec 10.2 clarification

Gavin Bierman gavin.bierman at oracle.com
Thu Jan 21 21:28:19 UTC 2021


Thanks Manoj. You’re quite correct, the text in the brackets is stale and should read as you suggest. 

Alex is currently integrating the text into the JLS, so I shall make sure this change is reflected in the final specification.

Best wishes,
Gavin

> On 15 Jan 2021, at 06:52, Manoj Palat <manoj.palat at in.ibm.com> wrote:
> 
> Hi Gavin, all,
> 
> From http://cr.openjdk.java.net/~gbierman/jep395/jep395-20201204/specs/records-jls.html (which is the http://cr.openjdk.java.net/~gbierman/jep395/latest as of writing this),
> from the section before introduction, we see that :
> 
> "The changes are the same as those in the second preview of Records in Java SE 15, except for minor editorial changes and the following:
> ...
> Add text to explicitly rule out using C-style array declaration of record components (10.2)."
> 
> but 10.2 talks about only variable arity record component as reproduced below:
> 
> "the array type of the variable is denoted by:
> ...
> any bracket pairs that follow the variable's Identifier in the declarator (not applicable for a variable arity parameter or variable arity record component); then
> ..."
> 
> Shouldn't the text in the brackets be "(not applicable for a variable arity parameter or record component)" ?
> 
> 
> Regards,
> Manoj
> 
> 



More information about the amber-spec-experts mailing list