JDK-8208371 : Provided supported mechanims to create a ModuleElement for an unnamed module
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.lang.model
  • Affected Version: 9,10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-07-27
  • Updated: 2019-01-17
  • Resolved: 2019-01-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b04Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
Unnamed modules are part of the platform module system (http://openjdk.java.net/jeps/261). It would be helpful if the javax.lang.model API provided a supported and documented mechanism to create a ModuleElement for the unnamed module.
Comments
Review thread: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-January/012836.html
10-01-2019

When developing the changes for JDK-8190886, it would have been helpful to have a standardized idiom to create a ModuleElement of an unnamed module. For the case in question, the desire was to use the two-argument form of getTypeElement which takes a name and a module.
27-07-2018