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 81248 - minOccurs/maxOccurs attributes are lost after applying design pattern
Summary: minOccurs/maxOccurs attributes are lost after applying design pattern
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-27 12:51 UTC by Andrei Chistiakov
Modified: 2006-07-31 12:32 UTC (History)
4 users (show)

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 Andrei Chistiakov 2006-07-27 12:51:36 UTC
Reproduced in build 060726.

To reproduce the bug:

- open PO schema;
- switch to source view;
- apply Russian Doll design pattern. 
Notice that in the original PO schema appearance of 'item' element is restricted
by minOccurs="0", maxOccurs="unbounded" attributes. In redesigned schema they
are lost.
Comment 1 Chris Webster 2006-07-27 23:34:11 UTC
Try to use po and look at min + max occurs in the schema editor. You will notice
these are 0 to unbounded. However, when looking in the navigator it looks like
the ElementImpl is correct, but the Proxy appears not to delegate to the original. 
Comment 2 Samaresh Panda 2006-07-27 23:58:04 UTC
Chris, thanks for the initial evaluation.
Comment 3 Samaresh Panda 2006-07-27 23:58:52 UTC
- ElementProxy.java, new revision: 1.1.2.10;
Comment 4 Andrei Chistiakov 2006-07-31 12:32:07 UTC
Verified in build 060730.