[BLUEJ-283] Using .length on arrays fails in the codepad
In the code pad, this code
{noformat} new String[6].length {noformat}
and this code:
{noformat} String[] x = new String[6]; x.length {noformat}
used to work in BlueJ 2.5.3 and returned 6 in each case (note there is no trailing semi-colon on either last line). However, in BlueJ 3.0.1 (and 3.0.2rc1) we get:
{{Error: not a statement}}
for the first, and:
{{Error: ';' expected}}
for the second.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.0.2