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 125960 - Code Completion inserts end tag when end already exists
Summary: Code Completion inserts end tag when end already exists
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks: 138486
  Show dependency tree
 
Reported: 2008-01-24 22:26 UTC by tonybeckham
Modified: 2008-08-18 18:40 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 tonybeckham 2008-01-24 22:26:24 UTC
Poblem:
Code completion inserts closing tag when closing tag is already present.

System Info:
Product Version: NetBeans IDE Dev (Build 200801220251)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.1 running on i386; MacRoman; en_US (nb)

Steps to Reproduce:
1. Create a new schema
2. add a new Complex type
3. add a new element to the complex type
4. change to source view
5. position cursor after <xsd:element name="newElement">
6. invoke Code Completion and the closing tag for that is inserted.  This breaks the schema and should not happen since
the closing tag already exists.
Comment 1 Samaresh Panda 2008-08-14 17:16:26 UTC
Fixed: http://hg.netbeans.org/main/rev/013dbf209af0.
Comment 2 tonybeckham 2008-08-18 18:40:36 UTC
Fix Verified

Product Version: NetBeans IDE Dev (Build 200808170243)
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.4 running on x86_64; MacRoman; en_US (nb)