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 97127 - item, multiple times, included in code completion list
Summary: item, multiple times, included in code completion list
Status: RESOLVED INVALID
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-02 18:22 UTC by htt
Modified: 2009-02-19 23:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Source (1.41 KB, application/octet-stream)
2007-03-02 18:23 UTC, htt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description htt 2007-03-02 18:22:46 UTC
This is a sort of side efffect from issue 96645.  Using the same attached
source, the code completion list now includes
    POP2:child
    POP2:child[1..1]
    POP2:root
    POP:child
    POP:child[1..1]
    POP:root
    yada:anotherRoot

No need for 2 versions of "child"
Comment 1 htt 2007-03-02 18:23:34 UTC
Created attachment 39147 [details]
Source
Comment 2 Samaresh Panda 2007-03-02 22:21:12 UTC
IMO, this is good information and probably not a bug. I leave it up to you.

POP:child => Appears as a result of xsd:any and hence we don't show cardinality.
POP:child[1..1] => Appears as a child and shows cardinality.

If we want to show one, then we will have to argue on whether or not to show
cardinality, because one qualifies and one doesn't.

This is really a corner case and not sure if worth fixing. I'm lowering the
priority to P4.
Comment 3 Samaresh Panda 2008-12-04 17:25:12 UTC
Marking it as invalid.