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 186077

Summary: Renaming internal class does not update imports
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
URL: http://javafx-jira.kenai.com/browse/JFXC-4359
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173077    
Attachments: Missing type info for an inner class import

Description Alexandr Scherbatiy 2010-05-13 10:32:18 UTC
Steps to reproduce:

- Create 'A' JavaFX class:
--------------  A.fx -------------
package javafxapplication7;

public class A {}
netbeans-trunk-nightly-201005122200-javafx-full-windows.exe 

  Product Version         = NetBeans IDE Dev (Build 201005122200) (#1719540f4497)
  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.


public class B{}
----------------------------------

- Create Main JavaFX file:
--------------  Main.fx -------------
import javafxapplication7.A.B;

var a = A{};
var b = B{};
----------------------------------

- Select the B class in the Main file and rename it to B2
  The import line is not updated.


Main.fx:9: cannot find symbol
symbol  : static B
location: class javafxapplication7.A
import javafxapplication7.A.B;

Main.fx:12: cannot find symbol
symbol  : class B2
location: class javafxapplication7.Main
var b = B2{};
2 errors
Comment 1 Alexandr Scherbatiy 2010-05-13 10:33:31 UTC
Sorry. More clear description.

Steps to reproduce:

- Create 'A' JavaFX class:
--------------  A.fx -------------
package javafxapplication7;

public class A {}

public class B{}
----------------------------------

- Create Main JavaFX file:
--------------  Main.fx -------------
import javafxapplication7.A.B;

var a = A{};
var b = B{};
----------------------------------

- Select the B class in the Main file and rename it to B2
  The import line is not updated.


Main.fx:9: cannot find symbol
symbol  : static B
location: class javafxapplication7.A
import javafxapplication7.A.B;

Main.fx:12: cannot find symbol
symbol  : class B2
location: class javafxapplication7.Main
var b = B2{};
2 errors
Comment 2 Alexandr Scherbatiy 2010-05-13 10:33:39 UTC
netbeans-trunk-nightly-201005122200-javafx-full-windows.exe 

  Product Version         = NetBeans IDE Dev (Build 201005122200)
(#1719540f4497)
  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 2010-05-13 13:20:18 UTC
Empire strikes back :(
The javafx compiler for whatever reason doesn't complete type information for the member select tree representing the type name of "refactoringissues.i186077.A.B" class inside the particular import (can be seen in the attached screenshot). It used to work, as far as I can remember.

I will try to prepare a test for javafxc team and file issue there.
Comment 4 J Bachorik 2010-05-13 13:21:11 UTC
Created attachment 98944 [details]
Missing type info for an inner class import
Comment 5 J Bachorik 2010-05-13 14:05:30 UTC
In case you would increase this issue priority, plz, make the corresponding change to the javafxc issue as well.
Comment 6 David Strupl 2011-05-16 13:51:58 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.