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 145225

Summary: [65cat] Rename Package Refactoring Doesn't Work on Groovy Scripts
Product: groovy Reporter: sunbiz <sunbiz>
Component: CodeAssignee: Martin Janicek <mjanicek>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: martin_adamek
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: ENHANCEMENT Exception Reporter:

Description sunbiz 2008-08-27 00:02:08 UTC
[ BUILD # : 200808111757 ]
[ JDK VERSION : other ]

Product Version: NetBeans IDE Dev (Build 200808111757)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_IN (nb)

When you rename a package through the refactor menu on a project, the

groovy script's package name is not changed. A Java file from the 
same package has the package declaration renamed to the new value.

Steps to reproduce:
1.) Create New Groovy Project from Sample Groovy-Java Demo
2.) Right-click the demo package -> Refactor -> Rename
3.) In the textfield, enter a new name
4.) The java file's package definition is changed to the new value, 
but groovy's package declaration is not changed.
Comment 1 martin_adamek 2008-08-28 09:28:16 UTC
Unfortunately, refactoring of Groovy sources is not planned for 6.5. Changing to enhancement. 
Comment 2 Martin Janicek 2012-02-29 15:13:12 UTC
*** Bug 140100 has been marked as a duplicate of this bug. ***
Comment 3 Martin Janicek 2012-02-29 15:16:17 UTC

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