Bug 82712 - [1.5] Code assist does not show method parameters from static imports
Summary: [1.5] Code assist does not show method parameters from static imports
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-12 15:54 EST by Sebastian Davids CLA
Modified: 2008-04-28 07:24 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix (13.55 KB, patch)
2008-04-09 10:24 EDT, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids CLA 2005-01-12 15:54:12 EST
Test:

import static java.lang.Math.*;,

public class Test {

    void t() {
        abs(<CTRL+SPACE>);
    }
}
Comment 1 Olivier Thomann CLA 2005-01-13 14:17:25 EST
You can trigger the code completion if you put the <Ctrl + space> before the '('.
import static java.lang.Math.*;,

public class Test {

    void t() {
        abs<CTRL+SPACE>();
    }
}

works.

David, is it possible to get the same completion after the '(?
Comment 2 David Audel CLA 2005-01-14 09:09:44 EST
It's a bug. Sebastian test case should work as the following test case and abs()
methods should be proposed.

public class Test {
    void t() {
    	java.lang.Math.abs(<CTRL+SPACE>);
    }
}
Comment 3 David Audel CLA 2008-04-09 10:24:27 EDT
Created attachment 95368 [details]
Proposed fix
Comment 4 David Audel CLA 2008-04-09 10:29:18 EDT
Released for 3.4M7.

Tests added
  CompletionTests_1_5#test0362() -> test0363()
Comment 5 Eric Jodet CLA 2008-04-28 07:24:42 EDT
Verified for 3.4M7 using I20080427-2000.