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 219997

Summary: Refactor Rename - initial new name is Object
Product: groovy Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: VERIFIED FIXED    
Severity: normal CC: vriha
Priority: P4    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2012-10-12 11:56:39 UTC
This is very similar to issue #219763, but less important imho. 

Try to:
- create sample Groovy project NB Project Generators
- try to Refactor|Rename on name in NetBeansPlatform.groovy
=> the suggested new name is Object, while in other projects/languages, it is usually the current name


Product Version: NetBeans IDE Dev (Build 201210120002)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b03
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Janicek 2012-10-12 12:03:09 UTC
Thanks Vlado, definitely valid issue which needs to be fixed for 7.3.
Comment 2 Martin Janicek 2012-10-16 06:40:02 UTC
Vlado, are you still able to reproduce this? I've tried it now and it seems to be working (not sure how, as far as I remember I didn't change anything in this area during the last few days :))
Comment 3 Vladimir Riha 2012-10-22 08:36:31 UTC
It still doesn't work for me. I had caret at this position:

def na|me = "NewApplication-" + id;



Product Version: NetBeans IDE Dev (Build 201210220002)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 4 Martin Janicek 2012-10-22 12:02:23 UTC
Ah, I was trying to do that on NetBeansPlatform class. I'm able to reproduce now..
Comment 5 Martin Janicek 2012-10-22 12:44:17 UTC
Fixed in: web-main #40f52d460e7d
Comment 6 Quality Engineering 2012-10-23 12:09:51 UTC
Integrated into 'main-golden', will be available in build *201210231040* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/40f52d460e7d
User: Martin Janicek <mjanicek@netbeans.org>
Log: #219997 - Refactor Rename - initial new name is Object
Comment 7 Vladimir Riha 2012-10-24 07:28:41 UTC
thanks, works fine

Product Version: NetBeans IDE Dev (Build 201210240001)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)