8208371: Provided supported mechanims to create a ModuleElement for an unnamed module

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2019-01-11 09:57:15 -08:00
parent 8b0048861b
commit 5ad47c58a3
2 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ public interface Elements {
/**
* Returns a module element given its fully qualified name.
*
* If the named module cannot be found, {@code null} is
* If the requested module cannot be found, {@code null} is
* returned. One situation where a module cannot be found is if
* the environment does not include modules, such as an annotation
* processing environment configured for a {@linkplain
@ -199,7 +199,7 @@ public interface Elements {
* @implSpec The default implementation of this method returns
* {@code null}.
*
* @param name the name
* @param name the name, or an empty string for an unnamed module
* @return the named module element, or {@code null} if it cannot be found
* @see #getAllModuleElements
* @since 9

View File

@ -23,7 +23,7 @@
/*
* @test
* @bug 8163989
* @bug 8163989 8208371
* @summary Test basic workings of naming methods on ModuleElement
* @library /tools/javac/lib
* @modules java.compiler