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 186381 - "import static " code assistance still does not work
Summary: "import static " code assistance still does not work
Status: RESOLVED DUPLICATE of bug 71249
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 13:14 UTC by hantsy
Modified: 2010-05-19 15:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
import-static-fix-action (12.29 KB, image/png)
2010-05-19 13:16 UTC, hantsy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hantsy 2010-05-19 13:14:46 UTC
"import static" is a feature in jdk5, but now it is still not support in NetBeans IDE.
For example,
Using "assertTrue" static method in a Test file.
If you does not add "import static org.junit.Assert.*;" to import block, the "assertTure" will be marked as an Error, either the Alt+Insert shortcut or "Fix imports" or "Ctrl+shift+I" shortcut can not corret this error properly.
Comment 1 hantsy 2010-05-19 13:16:46 UTC
Created attachment 99207 [details]
import-static-fix-action
Comment 2 Jan Lahoda 2010-05-19 15:09:56 UTC
Already filled as bug #71249. Thanks for the report anyway.

*** This bug has been marked as a duplicate of bug 71249 ***