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 236345

Summary: Code completion moves closing </dependency> tag up after <artifactID>
Product: xml Reporter: MackSix
Component: Text-EditAssignee: Svata Dedic <sdedic>
Status: RESOLVED DUPLICATE    
Severity: normal CC: MackSix, mkleint
Priority: P3 Keywords: REGRESSION
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description MackSix 2013-09-25 05:00:33 UTC
1. Type in a new dependency in the POM for jtattoo by typing:

<dependency>

</dependency>

in the appropriate location.

2. Now type <groupID> and use code completion to enter com.jtattoo.

Results: The closing dependency tag is moved up after the entry like this:

<dependency>
    <groupID>com.jtattoo</dependency>

This gives the illusion that code completion closed the tag, which of course is a problem for you trying to type in new entries if you did not notice what happened. 

Works OK in 7.3.1. Regression 

Product Version: NetBeans IDE 7.4 RC1 (Build 201309162201)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b50
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b108
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Milos Kleint 2013-09-25 05:40:38 UTC
I cannot reproduce in current dev build (20130919) but if this is happening, there's no way it could be caused by maven's own code, more likely a xml completion issue. reassigning.
Comment 2 markiewb 2013-10-06 12:37:29 UTC

*** This bug has been marked as a duplicate of bug 234933 ***