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 180319 - Refactor->Move adds import before package declaration
Summary: Refactor->Move adds import before package declaration
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-05 03:07 UTC by Alexandr Scherbatiy
Modified: 2010-02-09 04:44 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-05 03:07:27 UTC
NetBeans-JavaFX-Soma: #143

  Product Version         = NetBeans IDE Dev (Build 201002040200) (#dc1d49e38aaa)
  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 a JavaFX project
- Create 'B' JavaFX class:
package javafxapplication6;

public class B {
    public var name = "B";
    public function f() {

- Create 'Main' JavaFX file:
package javafxapplication6;

var b = B{
    name: "B"


- Refactor->move the 'B' class to 'b' package

The Main class becomes:
import b.B;
package javafxapplication6;

var b = B{
    name: "B"

JavaFXApplication6\src\javafxapplication6\Main.fx:2: Sorry, I was trying to understand the script contents but I got confused when I saw 'javafxapplication6' which is an identifier.
package javafxapplication6;

JavaFXApplication6\src\javafxapplication6\Main.fx:2: You have forgotten the ';', which is needed to separate one expression from the next.
package javafxapplication6;
2 errors
Comment 1 J Bachorik 2010-02-08 08:47:34 UTC
fixed in
Comment 2 Alexandr Scherbatiy 2010-02-09 04:44:06 UTC
verified in NetBeans-JavaFX-Soma: #147