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 59332

Summary: Code completion items of & text entities are not sorted
Product: xml Reporter: Jiri Kovalsky <jkovalsky>
Component: CodeAssignee: Marek Fukala <mfukala>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of unsorted completion list.
DTD file for easy reproduction of the bug.
XML file for easy reproduction of the bug.

Description Jiri Kovalsky 2005-05-27 14:42:39 UTC
FCS build #200505031930 of NetBeans 4.1
Windows XP, JDK 1.5.0_03 build #06

Description:
============
Code completion for predefined text entities beginning with & char is not
sorted. See the attached picture to get what I mean.

Steps to reproduce:
===================
1. Create new sample web application project.
2. Save attached tutorial.dtd and tutorial.xml files in the project.
3. Open tutorial.xml file.
4. Type '&' at line 10 and wait until code completion shows up or press
CTRL+Space. Note that suggestions are not sorted.
Comment 1 Jiri Kovalsky 2005-05-27 14:43:42 UTC
Created attachment 22339 [details]
Screenshot of unsorted completion list.
Comment 2 Jiri Kovalsky 2005-05-27 14:44:54 UTC
Created attachment 22340 [details]
DTD file for easy reproduction of the bug.
Comment 3 Jiri Kovalsky 2005-05-27 14:45:37 UTC
Created attachment 22341 [details]
XML file for easy reproduction of the bug.
Comment 4 Marek Fukala 2005-10-12 16:35:34 UTC
fixed

Checking in xml/core/src/org/netbeans/modules/xml/dtd/grammar/DTDGrammar.java;
/cvs/xml/core/src/org/netbeans/modules/xml/dtd/grammar/DTDGrammar.java,v  <-- 
DTDGrammar.java
new revision: 1.21; previous revision: 1.20
done
Comment 5 Jiri Kovalsky 2005-11-04 13:31:36 UTC
Works fine in development build #200511031900 of NetBeans 5.0.