You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Markus Elfring <Ma...@web.de> on 2022/09/02 12:26:30 UTC
Checking support for “simple names” in import declarations
Hello,
Information (like the following) is published.
The Java® Language Specification
Java SE 18 Edition
Section “Single-Type-Import Declarations”:
https://docs.oracle.com/javase/specs/jls/se18/html/jls-7.html#jls-7.5.1
“…
A single-type-import declaration imports a single class or interface by giving its canonical name, making it available under a simple name in the module, class, and interface declarations of the compilation unit in which the single-type-import declaration appears.
…”
Section “Fully Qualified Names and Canonical Names”:
https://docs.oracle.com/javase/specs/jls/se18/html/jls-6.html#jls-6.7
“…
The fully qualified name of a named package that is not a subpackage of a named package is its simple name.
…”
In which directory may the corresponding source file (for which the mentioned “simple name” was selected) be stored?
Do you find a storage location like “<project_root>/src/<simple_name>” usable for an evolving Java package in available development environments?
Regards,
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org