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 54469 - Case insensitive code completion not working for import
Summary: Case insensitive code completion not working for import
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 13:47 UTC by tthompson
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (2.07 KB, text/plain)
2005-02-04 08:00 UTC, Dusan Balek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tthompson 2005-02-03 13:47:32 UTC
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
Comment 1 Jan Pokorsky 2005-02-03 14:12:21 UTC
an editor issue
Comment 2 Dusan Balek 2005-02-03 14:50:27 UTC
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.
Comment 3 Martin Matula 2005-02-03 15:54:26 UTC
Dusane, should this be an official enhancement request to add the new
method you mention to javacore?
Comment 4 tthompson 2005-02-03 16:02:52 UTC
One additional comment I should have made is this worked fine in 3.6 
but is broken in 4.0.
Comment 5 Martin Matula 2005-02-03 17:31:18 UTC
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
Comment 6 Dusan Balek 2005-02-04 07:59:17 UTC
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.
Comment 7 Dusan Balek 2005-02-04 08:00:46 UTC
Created attachment 20186 [details]
NPE
Comment 8 Martin Matula 2005-02-04 15:15:46 UTC
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
Comment 9 Quality Engineering 2007-09-20 12:26:44 UTC
Reorganization of java component