mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-26 02:00:12 +00:00
8208371: Provided supported mechanims to create a ModuleElement for an unnamed module
Reviewed-by: jjg
This commit is contained in:
parent
8b0048861b
commit
5ad47c58a3
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user