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 249311

Summary: XML Editor highlight wrong tag
Product: xml Reporter: akobberup
Component: CodeAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of how the error manifests

Description akobberup 2014-12-12 08:15:45 UTC
Created attachment 151063 [details]
Screenshot of how the error manifests

I often see the xml editor highlighting the wrong start-tag when the cursor is in a close-tag. 
When the cursor is in the start tag, the correct close tag is highlighted.

Product Version: NetBeans IDE Dev (Build 201412090001)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 8 version 6.2 running on amd64; Cp1252; da_DK (nb)
Comment 1 Svata Dedic 2015-05-14 10:51:26 UTC
Reproduced, the culprit is the self-closing tag.
Comment 2 Svata Dedic 2015-05-14 13:55:16 UTC
Fixed in jet-main#29add30ce521
Comment 3 Quality Engineering 2015-05-17 05:24:53 UTC
Integrated into 'main-silver', will be available in build *201505170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/29add30ce521
User: Svata Dedic <sdedic@netbeans.org>
Log: #249311: reimplemented backward tag search