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 172145

Summary: [Refactoring] renaming variable name throws IOException
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173077    
Attachments: IDE log file

Description Alexandr Scherbatiy 2009-09-14 10:05:19 UTC
Steps to reproduce:

- Copy the code to the editor:
var radius = 20.0;

- Rename the varibale name to 'a'

The exception pops up:
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.init(
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.<init>(
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.create(
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringPlugin.prepare(
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$
	at org.openide.util.RequestProcessor$
[catch] at org.openide.util.RequestProcessor$
Comment 1 Alexandr Scherbatiy 2009-09-14 10:05:51 UTC
Created attachment 87583 [details]
IDE log file
Comment 2 Alexandr Scherbatiy 2009-09-14 10:06:28 UTC 

  Product Version         = NetBeans IDE Dev (Build 200909132344) (#a16a818453db)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.
Comment 3 J Bachorik 2009-09-15 10:57:30 UTC
Should be fixed in
Comment 4 Alexandr Scherbatiy 2009-09-21 09:15:21 UTC
The issue is still reproduced in the 
Comment 5 J Bachorik 2009-09-25 08:56:32 UTC
It is necessary to mention that this problem occurs only when invoking rename from the popup menu - otherwise the
instant rename is used which doesn't cause this exception.

fixing -
Comment 6 Alexandr Scherbatiy 2009-09-29 10:29:54 UTC
verified in