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 257723 - Fix Imports doesn't work for {@link} in package-info.java
Summary: Fix Imports doesn't work for {@link} in package-info.java
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-28 02:18 UTC by _ gtzabari
Modified: 2016-08-01 02:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2016-01-28 02:18:03 UTC
Product Version: NetBeans IDE Dev (Build 201601210002)
Java: 1.8.0_71; Java HotSpot(TM) 64-Bit Server VM 25.71-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_71-b15
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

If I take a working {@link} and move it into package-info.java, then the editor  treats referenced classes as unused. Fix imports won't add references for them, and will actually remove any imports the user enters manually.
Comment 1 _ gtzabari 2016-08-01 02:52:34 UTC
To clarify, this bug triggers compiler errors.

If you have "Format on Save" enabled, you are forced to temporarily disable the feature in order to update package-info.java.