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 181745 - Refactor->Copy adds two the same imports
Summary: Refactor->Copy adds two the same imports
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: J Bachorik
Depends on:
Blocks: 173077
  Show dependency tree
Reported: 2010-03-10 04:24 UTC by Alexandr Scherbatiy
Modified: 2010-03-12 08:34 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-03-10 04:24:32 UTC
NetBeans-JavaFX-Soma: #180

  Product Version         = NetBeans IDE Dev (Build 201003081350) (#c9c80d9862fe)
  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 A JavaFX class
--------- A.fx ---------------------
package javafxapplication1;

public class A {
- Create B JavaFX class
--------- B.fx ---------------------
package javafxapplication1;

public class B extends A{

- Refactor->Copy the B class to the javafxapplication2 package

The copied class has two the same imports:
package javafxapplication2;
import javafxapplication1.A;
import javafxapplication1.A;

public class B extends A{

Comment 1 J Bachorik 2010-03-10 14:44:51 UTC
Works for me for a build containing changesets up to

Feel free to reopen if you can reproduce it on the latest build containing the aforementioned changeset
Comment 2 Alexandr Scherbatiy 2010-03-12 08:34:04 UTC
verified in NetBeans-JavaFX-Soma: #182