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 201487 - code completion cannot insert identifier if organize imports is set to generate package imports
Summary: code completion cannot insert identifier if organize imports is set to genera...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Other
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 13:14 UTC by Jiri Prox
Modified: 2011-12-09 15:04 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 Jiri Prox 2011-08-31 13:14:20 UTC
code completion cannot insert identifier if organize imports is set to generate package imports.

Steps to reproduce:
1) in setting set in organize imports settings - use package imports
2) in following code call code completion at position marker by | and select 1st item FileNotFounndException



import java.io.FileNotFoundException;

public class Test {

    public static void main(String[] args) {
        try {
            if(args.length==1) throw new FileNotFoundException();
        } catch(|)
    }
}

-> no identifier is inserted
Comment 1 Dusan Balek 2011-08-31 14:15:12 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/af3dd065ff57
Comment 2 Jiri Prox 2011-12-09 15:04:29 UTC
verified