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 180549 - Package renaming does not update the static import
Summary: Package renaming does not update the static import
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: J Bachorik
Depends on:
Blocks: 173077
  Show dependency tree
Reported: 2010-02-10 07:16 UTC by Alexandr Scherbatiy
Modified: 2010-03-10 03:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-02-10 07:16:25 UTC
NetBeans-JavaFX-Soma:  #148

  Product Version         = NetBeans IDE Dev (Build 201002080200)
  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.

Steps to reproduce:

- Create 'pack' package
- Create 'M' JavaFX file under the package
package pack;

public function sqr(x:Number) { x * x};

- Create 'Main' JavaFX file under the package
import pack.M.*;

var a = sqr(3);

- Refactor->Rename the 'pack' package to 'pack2' 
- Clean and build the project

JavaFXApplication23\src\pack2\Main.fx:10: package pack.M does not exist
import pack.M.*;
JavaFXApplication23\src\pack2\Main.fx:11: cannot find symbol
symbol  : function sqr(Integer)
location: class pack2.Main
var a = sqr(3);
2 errors
Comment 1 J Bachorik 2010-03-05 08:00:16 UTC
Comment 2 Alexandr Scherbatiy 2010-03-10 03:15:45 UTC
verified in NetBeans-JavaFX-Soma: #180