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 138039 - Code Completion offered for closing tags
Summary: Code Completion offered for closing tags
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 00:27 UTC by tonybeckham
Modified: 2008-06-24 18:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggestion that makes no sense (207.33 KB, image/png)
2008-06-24 00:28 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-06-24 00:27:32 UTC
System:
Product Version: NetBeans IDE Dev (Build 200806230002)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)

Problem:
Closing Tags offer attributes that aren't even attribute of the element.

Steps:
1. Create Purchase Order Sample schema in a BPEL project
2. Generate a sample XML document from the ourchase order scheam selecting purchaseOrder as the root element
3. At the end of the XML document before the closing tag "</ns0:purchaseOrder>" begin a new tag
4. from the CC suggestion select billTo, end the tag and select CC to close the tag </ns0:billTo>
5. place your cursor after "billTo" before">" in the closing tag ("|" = cursor) "</ns0:billTo|>" and pres space
6. you get orderDate attribute suggestion but is not an attribute of billTo
Comment 1 tonybeckham 2008-06-24 00:28:00 UTC
Created attachment 63305 [details]
Suggestion that makes no sense
Comment 2 Samaresh Panda 2008-06-24 01:32:50 UTC
huh, interesting find...
Fixed: http://hg.netbeans.org/main/rev/1fa465f00876.
Comment 3 tonybeckham 2008-06-24 18:57:49 UTC
Fix Verified

Product Version: NetBeans IDE Dev (Build 200806240008)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)