This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 6562 - Incorrect modification of field which is array.
Summary: Incorrect modification of field which is array.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Petr Slegr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-05 23:20 UTC by Petr Slegr
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Slegr 2000-05-05 23:20:11 UTC
Let be declared

int nums [];

i.e. C-like array declartaion. In property type for this field there modify type from int[] to int[][].
You will get

int[][] nums [];


Do it several times -- always add one more dimension -- and then Forte will be adding [] automatically.
Then Forte is locked.

[Update] if the field name is followed by brackets and user adds a dimension to field`s type using property sheet, after reparse the type is given an extra dimension which is displayed back in propert
y sheet. This is confusing and, because reparse occurs after a few seconds after the modification, select whole text in the Type property, so user might accidentaly delete the text.

[Svata] The notation TypeDecl Identifier ArrayDims is allowed by JLS, but currently unsupported by JavaParser.
Comment 1 Marek Grummich 2000-07-25 09:29:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jan Becicka 2001-06-27 17:32:26 UTC
[010626_1] Verified
Comment 3 Quality Engineering 2003-07-02 17:16:58 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.