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 102744 - As array option does not generate array for multiplicities
Summary: As array option does not generate array for multiplicities
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-27 12:25 UTC by Alexandr Scherbatiy
Modified: 2007-04-28 11:54 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 Alexandr Scherbatiy 2007-04-27 12:25:06 UTC
Steps to reproduce:
- Create a Class element and name it
- Insert 'String a[*]' attribute to the element 
- Go to the attribute multiplicity property
- Choose 'As Array' collection type
- Generate code
- Go to the source file
 The generated code is
 -------------------------------
    private ArrayList<String> a;
 -------------------------------
 instead of expected:
 -------------------------------
     private String[] a;
 -------------------------------
Comment 1 Viktor Lapitski 2007-04-28 00:49:11 UTC
it was the global "Collection Override" setting used when empty value was
returned from the range. Whereis the empty value now means array. Fixed.
Comment 2 Alexandr Scherbatiy 2007-04-28 11:54:30 UTC
verified in netbeans-trunk-nightly-200704280000-uml.zip