Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338398

Summary: Code assist is case sensitive for statically imported methods
Product: [Eclipse Project] JDT Reporter: David Balažic <david.balazic>
Component: CoreAssignee: Jay Arthanareeswaran <jarthana>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: amj87.iitr, daniel_megert, jarthana, markus.kell.r
Version: 3.6.1   
Target Milestone: 4.6 M7   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/71094
https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=d07b5d69111b0f9bf3d504807099829733d08bf4
Whiteboard:

Description David Balažic CLA 2011-02-28 06:39:43 EST
In a Java file with:

import static org.junit.Assert.assertNotNull;


typing in code "assertno" and then pressing ctrl+space gives no proposals.

Typing "assertNo" and the ctrl+space on the other hand offers assertNotNull, as expected.



-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.6.1.r361_v20100714-0800-7z8XFUSFLFlmgLc5z-Bvrt8-HVkH
Comment 1 David Balažic CLA 2011-02-28 06:40:26 EST
May be related with bug 246832.
Comment 2 Ayushman Jain CLA 2011-02-28 06:44:38 EST
I'll take a look.
Comment 3 Dani Megert CLA 2016-04-19 09:17:07 EDT
*** Bug 491997 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2016-04-20 09:48:06 EDT
New Gerrit change created: https://git.eclipse.org/r/71074
Comment 5 Jay Arthanareeswaran CLA 2016-04-20 09:51:01 EDT
(In reply to Eclipse Genie from comment #4)
> New Gerrit change created: https://git.eclipse.org/r/71074

There were three instances of CharOperation.equals() without case insensitive flags. One pertains to this but other two are related to proposals from Javadoc on constructors and method parameter names. Unfortunately the latter two have tests backing them. I will take a look at the history and see if there is any rationale behind them later. As for as this bug is concerned, this gerrit patch will do.
Comment 6 Eclipse Genie CLA 2016-04-20 13:51:42 EDT
New Gerrit change created: https://git.eclipse.org/r/71094
Comment 8 Jay Arthanareeswaran CLA 2016-04-20 23:31:32 EDT
Fix released for Neon
Comment 9 Sasikanth Bharadwaj CLA 2016-04-26 07:06:12 EDT
Verified for Neon M7 using I20160425-1300 build