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

Bug 506482

Summary: [1.9][content assist] Type proposals not shown in module-info.java
Product: [Eclipse Project] JDT Reporter: Noopur Gupta <noopur_gupta>
Component: CoreAssignee: Manoj N Palat <manoj.palat>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, manoj.palat
Version: 4.7   
Target Milestone: BETA J9   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/87915
https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=3f8baad9d49667122f402f189245d51dd82af612
Whiteboard:
Bug Depends on:    
Bug Blocks: 480612    

Description Noopur Gupta CLA 2016-10-25 03:23:47 EDT
P20161024-2040

1) Press Ctrl+space in place of '|' => no proposals are shown.

module PTest {
	uses java.sql.Dr|
}

It works when a semicolon is added:

uses java.sql.Dr|;

2) No proposals are displayed here:

uses java.sql.|;
Comment 1 Dani Megert CLA 2016-10-25 03:50:01 EDT
In my example, even if I add the interface, I get an error that it can't be resolved.

Have /First Module/src/api1/IColorProvider.java
in /First Module/src/module-info.java add uses api1.IColorProvider;
Comment 2 Noopur Gupta CLA 2016-10-25 03:55:10 EDT
The same is applicable to "provides/with" also. Have a class p.C which implements "Driver" and press Ctrl+space:

module PTest {
    requires java.sql;
    provides java.sql.Driver with p.C|
}
Comment 3 Eclipse Genie CLA 2017-01-02 23:29:18 EST
New Gerrit change created: https://git.eclipse.org/r/87915
Comment 5 Manoj N Palat CLA 2017-01-03 03:24:53 EST
(In reply to Eclipse Genie from comment #4)
> Gerrit change https://git.eclipse.org/r/87915 was merged to [BETA_JAVA9].
> Commit:
> http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/
> ?id=3f8baad9d49667122f402f189245d51dd82af612

issue reported in comment 2 is fixed by the commit above - Rest of the issues were addressed by bug 509050 commit 4 already - when we moved to support the new grammar which included some major changes in the algorithm for the completion. Specific scenarios supported are listed in bug 509050.