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 - [Refactoring] renaming variable name throws IOException
Summary: [Refactoring] renaming variable name throws IOException
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks: 173077
  Show dependency tree
 
Reported: 2009-09-14 10:05 UTC by Alexandr Scherbatiy
Modified: 2009-09-29 10:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (51.70 KB, text/plain)
2009-09-14 10:05 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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:


java.io.IOException
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.init(RenameRefactoringElement.java:176)
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.<init>(RenameRefactoringElement.java:81)
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.create(RenameRefactoringElement.java:69)
	at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringPlugin.prepare(RenameRefactoringPlugin.java:238)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:419)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:403)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:214)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:803)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
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
netbeans-trunk-nightly-200909132344-javafx-full.zip 

  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 http://hg.netbeans.org/javafx/rev/3817b2819103
Comment 4 Alexandr Scherbatiy 2009-09-21 09:15:21 UTC
The issue is still reproduced in the netbeans-trunk-nightly-200909201401-javafx-full.zip 
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 - http://hg.netbeans.org/javafx/rev/dce2fce5385a
Comment 6 Alexandr Scherbatiy 2009-09-29 10:29:54 UTC
verified in netbeans-6.8beta-200909281634-javafx-full.zip