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.
Summary: | NetBeans generates static imports for private elements. | ||
---|---|---|---|
Product: | java | Reporter: | matthies <matthies> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | NEW --- | ||
Severity: | normal | CC: | sdedic |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
matthies
2016-03-21 21:51:05 UTC
You wrote:
> NetBeans proposes to convert "FooBar.FOO" to a static import, which results
> in a compilation error because FooBar is private.
I've tried to make NB display such hint, but failed. Could you please attach example code and your exported Options related to java edititing ? Thanks.
Under Options -> Editor -> Hints -> Language: Java, the hint "JDK Migration Support" -> "Static imports" must be checked. For me it is set to "Warning on Current Line", so you may have to go on the expression "FooBar.FOO" with the caret for the hint to appear. Please try this. If you still can't reproduce it, I'll provide an example source file and exported options. |