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 252941 - Fix Import shows blank box for static imports
Summary: Fix Import shows blank box for static imports
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 253177 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-11 22:59 UTC by _ gtzabari
Modified: 2015-06-25 10:35 UTC (History)
1 user (show)

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 2015-06-11 22:59:20 UTC
Product Version: NetBeans IDE Dev (Build 201506110001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 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

1. Invoke Fix Import in a Java file that requires a static import
2. Notice that instead of showing a class/field name, the combobox value is an empty string.

I am going to prioritize this as P2 because it is a regression and it is relatively difficult to use Fix Imports without it.
Comment 1 Dusan Balek 2015-06-22 09:26:28 UTC
Unfortunately, I cannot reproduce the problem in the current dev build.
Comment 2 _ gtzabari 2015-06-22 15:05:03 UTC
Sorry, I should have been more specific.

In dev build 201506220001 I see that static import of methods works, but attempting to static import:

* enum values (e.g. java.time.DayOfWeek.MONDAY)
* public static fields (e.g. java.time.format.DateTimeFormatter.ISO_DATE)

results in an empty combo-box.
Comment 3 Dusan Balek 2015-06-22 16:18:18 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/6d504854e7e0
Comment 4 Quality Engineering 2015-06-24 02:26:59 UTC
Integrated into 'main-silver', will be available in build *201506240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6d504854e7e0
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #252941: Fix Import shows blank box for static imports - fixed.
Comment 5 Jiri Prox 2015-06-25 10:35:56 UTC
*** Bug 253177 has been marked as a duplicate of this bug. ***