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.
If "Case Sensitive Code Completion" is turned off for the Java editor, it is still case sensitive when adding imports. For example, if I am trying to import java.util.HashMap: import java.util.h // Does not work but should import java.util.H // Works but shouldn't
an editor issue
The problem is that javacore's ClassIndex does not provide the getClassesByFQNPrefix(String fqnPrefix, boolean caseSensitive) method similar to getClassesBySNPrefix(String snPrefix, boolean caseSensitive). Reassigning to javacore for further evaluation.
Dusane, should this be an official enhancement request to add the new method you mention to javacore?
One additional comment I should have made is this worked fine in 3.6 but is broken in 4.0.
I've added the requested method. Reassigning back to editor. Checking in src/org/netbeans/modules/javacore/ClassIndex.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/ClassIndex.java,v <-- ClassIndex.java new revision: 1.25; previous revision: 1.24 done
Editor part fixed in [maintrunk]. Checking in JMIUtils.java; /cvs/java/editor/src/org/netbeans/modules/editor/java/JMIUtils.java,v <-- JMIUtils.java new revision: 1.7; previous revision: 1.6 done However, the attached NPE sometimes occures. Reassigning back to javacore.
Created attachment 20186 [details] NPE
Fixed. Checking in src/org/netbeans/modules/javacore/ClassIndex.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/ClassIndex.java,v <-- ClassIndex.java new revision: 1.26; previous revision: 1.25 done
Reorganization of java component