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 204090 - Schema-aware code completion makes duplicate suggestions
Summary: Schema-aware code completion makes duplicate suggestions
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Model (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 03:41 UTC by dbell
Modified: 2015-09-17 13:21 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 dbell 2011-10-22 03:41:21 UTC
[ BUILD # : 201110200600 ]
[ JDK VERSION : 1.6.26 ]

Consider the following schema content:

<xs:element name="myElement" type="MyElement/>

<xs:attribute name="myAttribute type="xs:string"/>

<xs:ComplexType>
        <xs:anyAttribute/>
        <xs:attribute ref="myAttribute"/>
<xs/ComplexType>


In a document using the above schema, invoking code completion in the following
situation:

<myElement |

results in two identical completion suggestions:
myAttribute
myAttribute


Ideally, completion suggestions would be unique: in this example, myAttribute
would only be suggested once.
Comment 1 Martin Balin 2015-09-17 13:21:24 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.