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 101257 - Setting attribute to use a Collection Type for multiplicity range doesn't update its setter/getter params
Summary: Setting attribute to use a Collection Type for multiplicity range doesn't upd...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Properties (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords:
Depends on:
Blocks: 94936
  Show dependency tree
 
Reported: 2007-04-17 01:43 UTC by Craig Conover
Modified: 2007-09-13 22:10 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 Craig Conover 2007-04-17 01:43:48 UTC
Steps to reproduce:
In the model, create the below attribute in class Abc:
    String foo[*]

Open the Multiplicity property editor for this foo attribute and change
Collection Type for the multiplicity range to Vector. Click OK.

Select the getFoo operation and open editor for Return Type property. Notice its
Ordered property is "As Array". (I suspect this UI should show table of ranges
like Paramaters editor - see issue 101256).
EXPECTED: should be updated to Vector to match its attribute.

Close Return Type editor.

Select the setFoo operation and open editor for Parameters property. Notice the
Colletion Type column for the range is "As Array".
EXPECTED: should be automatically updated to Vector to match its attribute.
Comment 1 Trey Spiva 2007-06-22 21:52:24 UTC
Fixed.  We now respect the default collection type properties.
Comment 2 Andrew Korostelev 2007-06-27 09:01:17 UTC
target milestone is set to 6.0M10
reproducible in netbeans-hudson-release60-m10-27-full (build 070627)

it seems that related changes (like issue 101256) are commited to trunk only.

changing multiplicity collection type for navigable association or attribute does not affect accessors.
Comment 3 Andrew Korostelev 2007-06-27 09:58:16 UTC
verified in trunk netbeans-hudson-trunk-1233-full.
but leave as reopened because target milestone is m10.
Comment 4 Trey Spiva 2007-06-28 15:15:50 UTC
I have moved this to the branch.
Comment 5 Joanne Lau 2007-09-13 22:10:50 UTC
Verified in trunk build 200709121200