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.
Created attachment 145523 [details] No package import statement generated. Test spec: http://services.netbeans.org/synergy/client/app/#/specification/297 test case: Use Package Imports Steps Options|Editor|Formatting language: java Category: Imports Check the radio button Use package Imports Expected Result use class imports disabled in options dialog Code completion or organize imports hints should generate package imports Actual Result use class imports disabled in options dialog Code completion generates FQN at caret position instead of Import statement (see attachment)
Unfortunately I cannot reproduce this issue. Can you please provide exact steps to reproduce? Thanks
I dont see the behaviour I reported anymore. I guess we can close the issue.
Ok, closing as WFM, feel free to reopen when it occurs again
I have the same issue. Product Version: NetBeans IDE Dev (Build 201508160002) Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25 System: Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb) Steps to reproduce: 1. From Options -> Editor -> Formatting -> Java -> Imports select the radiobutton "Use Package Imports". 2. Open the file imports.Imports 3. Go into class Imports and type "Fil" package imports; public class Imports { Fil } 4. Press CTRL + Spacebar to open the code completion popup. 5. Select the first entry: "File (java.io)" and press Enter This is the result: package imports; public class Imports { java.io.File }
Does it happen always or is it random? Did you confirm the change in the options dialog?
I cannot reproduce it. Product Version: NetBeans IDE Dev (Build 201508310002) Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss