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

Bug 520605

Summary: java 9 support plugin failts to handle project aka module dependencies correctly
Product: [Eclipse Project] JDT Reporter: Angelika Langer <tmp271203>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
my workspace containing the 3 modules none

Description Angelika Langer CLA 2017-08-07 03:46:48 EDT
Created attachment 269708 [details]
my workspace containing the 3 modules

I created 3 projects with a simple top-down dependency and added the necessary module descriptors in order to turn the projects into JPMS modules. Despite of the  correct module descriptors classes from exported packages are not visible. 

Then I tried to (redundantly) specify the dependencies in Eclipse.  I tried several things:

- I specified project dependencies via Java Build Path > Projects.  To no avail.
- I created modular jar files and specified them as required libaries.  To no avail.
- I imported the modular jars into the projects and specified them as required libaries.  To no avail.

The compiler still emits error messages as though the modules descriptors were missing or incorrect.

There is a corresponding question & answer on stackoverflow: 
https://stackoverflow.com/questions/45480926/eclipse-oxygen-how-to-specify-module-dependencies

eclipse.buildId: 4.7.0.I20170612-0950
marketplace plugin: 1.1.1.v20170731-0938_BETA_JAVA9
Java HotSpot(TM) 64-Bit Server VM (build 9+180, mixed mode)
Comment 1 Sasikanth Bharadwaj CLA 2017-08-07 04:41:24 EDT
Reproduced on head of BETA_JAVA9, the reconciler doesn't seem to be able to resolve any types, all imports and all references to types are reported as unresolved. The builder reports one error, The method doSomething(int) from the type Tester refers to the missing type Callback which is strange, considering that the required modules are on the build path as well as in the requires. Investigating..
Comment 2 Eclipse Genie CLA 2020-01-31 03:26:49 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.