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 270260

Summary: version auto-complete generates invalid XML
Product: projects Reporter: _ gtzabari <gtzabari>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal Keywords: REGRESSION
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description _ gtzabari 2017-03-31 07:40:29 UTC
Product Version: NetBeans IDE Dev (Build 201703300002)
Java: 1.8.0_121; Java HotSpot(TM) 64-Bit Server VM 25.121-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_121-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

1. Given:

		<dependency>
			<groupId>joda-time</groupId>
			<artifactId>joda-time</artifactId>
			<version>2.9.9</version>
		</dependency>

2. Place caret immediately inside <version> and trigger auto-complete.
3. Select version 2.9.7
4. Netbeans generates "<version>2.9.7</version>9</version>" which is invalid XML

Expected behavior: Netbeans should delete 2.9.9, and replace it with 2.9.7.
Comment 1 _ gtzabari 2017-04-07 18:31:30 UTC
This is a regression relative to version 8.2 (Build 20160930010) where I see it working properly.