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 227740

Summary: Renaming Javascript variable destroyied first line of JSP file
Product: javascript Reporter: ecerichter
Component: RefactoringAssignee: Petr Pisl <ppisl>
Status: RESOLVED DUPLICATE    
Severity: normal CC: vriha
Priority: P1    
Version: 7.4   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
Screenshot of the page after renaming...
page that went corrupted after renaming.
Video showing bug in action
Process in task manager.

Description ecerichter 2013-03-20 19:32:24 UTC
Product Version = NetBeans IDE Dev (Build 201303192300)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01

After using Ctrl+R to rename a variable in a JavaScript block, first line of JSP page got filled with name of the variable.

See attached screenshot for reference.
Comment 1 ecerichter 2013-03-20 19:32:44 UTC
Created attachment 132866 [details]
IDE log
Comment 2 ecerichter 2013-03-20 19:35:46 UTC
Created attachment 132867 [details]
Screenshot of the page after renaming...
Comment 3 ecerichter 2013-03-20 19:36:33 UTC
Created attachment 132868 [details]
page that went corrupted after renaming.
Comment 4 ecerichter 2013-03-20 19:42:03 UTC
Created attachment 132869 [details]
Video showing bug in action
Comment 5 ecerichter 2013-03-24 02:26:35 UTC
Created attachment 132987 [details]
Process in task manager.
Comment 6 Vladimir Riha 2013-03-24 18:50:57 UTC
reproducible
Comment 7 Vladimir Riha 2013-03-24 18:51:57 UTC
*

Product Version: NetBeans IDE Dev (Build 201303232300)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b09
System: Linux version 3.5.0-26-generic running on i386; UTF-8; en_US (nb)
Comment 8 Petr Pisl 2013-03-25 13:54:42 UTC
Fixed in webmain. It's basically side effect of isseu #226828 -> marking as duplicate.

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