Community
Participate
Working Groups
Created attachment 272895 [details] Sample project to reproduce the bug Steps to Reproduce: 1) Import the attached project into Eclipse 2) Search for module "org.eclipse.jupiter.api" by selecting Search > Java and Selecting search type as Module and Limit to All Occurences. The search reports 0 occurrences, even though the Junit5 jar containing this Automatic Module is present in its module path. The expected behavior is that the search for the module should yield the Junit5 jar, if the jar is added to module path or build path.
New Gerrit change created: https://git.eclipse.org/r/118288
Gerrit change https://git.eclipse.org/r/118288 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=bf6a4008daf8d98e0cec7c91279c54eace8d943b
(In reply to Eclipse Genie from comment #2) > Gerrit change https://git.eclipse.org/r/118288 was merged to [master]. > Commit: > http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/ > ?id=bf6a4008daf8d98e0cec7c91279c54eace8d943b The above patch has the implementation of the fix - tests to follow soon (tested manually - pushed to unblock ui for now) { Dev Notes: Automatic Module name comes either from the Manifest.MF or the non-manifest name created from the jar name - these do not have an underlying IJE - even manifest.mf cannot be considered since its non-java. In the indexing part, the name will be flagged with Automatic Module magic word. During the search time, the possible match caches this auto module name, and the contents would be created for module with the automatic module name when PM answers the contents. The search would proceed normally then and at the reporting time, would return the search match with the parent IJE.}
New Gerrit change created: https://git.eclipse.org/r/119251
(In reply to Kalyan Prasad Tatavarthi from comment #0) > Created attachment 272895 [details] > 2) Search for module "org.eclipse.jupiter.api" by selecting I believe this is org.junit.jupiter.api?
(In reply to Eclipse Genie from comment #4) > New Gerrit change created: https://git.eclipse.org/r/119251 Adds test case and also adds support for the workspace relative path
Gerrit change https://git.eclipse.org/r/119251 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=bac433f23efb37bb8ab82442e8c5125f7b7fa10d
I still see the same behavior reported in comment #0. Kalyan, can you check please?
I have tested this scenario by creating a new Java9 project and adding Junit5 library to its class path and searched for "org.junit.jupiter.api", which was successful. So This fix is verified in the Build I20180509-2000