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 - Code completion items of & text entities are not sorted
Summary: Code completion items of & text entities are not sorted
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-27 14:42 UTC by Jiri Kovalsky
Modified: 2006-03-24 13:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of unsorted completion list. (11.07 KB, image/png)
2005-05-27 14:43 UTC, Jiri Kovalsky
Details
DTD file for easy reproduction of the bug. (233 bytes, text/plain)
2005-05-27 14:44 UTC, Jiri Kovalsky
Details
XML file for easy reproduction of the bug. (176 bytes, text/xml)
2005-05-27 14:45 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this 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.