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

Summary: Code Completion inserts end tag when end already exists
Product: xml Reporter: tonybeckham <tonybeckham>
Component: Schema ToolsAssignee: Samaresh Panda <samaresh>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 138486    

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)