Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b14
Description
ModuleSymbol.getSimpleName derives its name from the qualified name, which is the more typical name to use.
Either we should change ModuleSymbol.name to be the simpleName ... which would require lots of use sites to change to use the flat/full name, or (simpler) we should change the inline code in MS.getSimpleName to use Convert.getSimpleName. That method is functionally equivalent, but the docs and parameter names indicate that it is (just) for classes, and not for any qualified name.
Either we should change ModuleSymbol.name to be the simpleName ... which would require lots of use sites to change to use the flat/full name, or (simpler) we should change the inline code in MS.getSimpleName to use Convert.getSimpleName. That method is functionally equivalent, but the docs and parameter names indicate that it is (just) for classes, and not for any qualified name.
Attachments
Issue Links
- relates to
-
JDK-8163989 Clarify ModuleElement spec
-
- Closed
-