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 - Renaming internal class does not update imports
Summary: Renaming internal class does not update imports
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: J Bachorik
URL: http://javafx-jira.kenai.com/browse/J...
Keywords:
Depends on:
Blocks: 173077
  Show dependency tree
 
Reported: 2010-05-13 10:32 UTC by Alexandr Scherbatiy
Modified: 2011-05-16 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Missing type info for an inner class import (179.90 KB, image/png)
2010-05-13 13:21 UTC, J Bachorik
Details

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