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 157596

Summary: Java imports are marked as unused
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: EditorAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Alexandr Scherbatiy 2009-01-29 10:07:27 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_promoted_SDK_installer: JavaFX SDK Promoted Build b04

  Product Version         = NetBeans IDE 6.5 (Build 200901261801)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_12-ea; Java HotSpot(TM) Client VM 11.2-b01; Sun Microsystems Inc.

Steps to reproduce:

- Copy the code to the editor:
-------------------------------------------
import java.util.LinkedList;

var list = new LinkedList();
-------------------------------------------

'import java.util.LinkedList;' line is marked as unused.

- Fix imports 
 The code is uncompilable:

Main.fx:11: cannot find symbol
symbol  : class LinkedList
location: class javafxapplication2.Main
var list = new LinkedList();
1 error
Comment 1 Rastislav Komara 2009-01-30 11:52:58 UTC
Moving to future.
Comment 2 Rastislav Komara 2009-03-02 10:14:06 UTC
reassigning to new owner.
Comment 3 J Bachorik 2009-04-01 13:23:47 UTC
When fixing imports the types should be de-generified.

Fixed in: http://hg.netbeans.org/javafx/rev/f25e54b5dc65
Comment 4 Alexandr Scherbatiy 2009-04-15 11:50:27 UTC
verified