Valid characters in a module name

Alan Bateman Alan.Bateman at oracle.com
Mon Jan 2 07:29:39 UTC 2017


On 02/01/2017 01:44, Ess Kay wrote:

> :
> Sure. However, can you imagine how much work it would be to update a Java
> source parser to allow identifiers like package and class names to contain
> escaped semi-colons, single quotes or double quotes? My scenario and that
> of many others is the same.  It can be done but the result will be ugly.
Can you clarify if your questions relate to module names in source files 
or in the binary form (in a module-info.class file)?

>
> I repeat my earlier question, are there existing module systems out there
> that allow spaces, quotes and semi colons to appear in a module name?
>
> All I ask is that serious thought be given to how much flexibility is
> really needed in a module name.  There are signs that there has not yet
> been much serious thought.  For example backspace is not allowed but DEL
> (0x127) is allowed.
>
The #ModuleNameCharacters thread on the jpms-spec-experts list [1] has 
the discussions and proposal on this topic.

-Alan

[1] http://mail.openjdk.java.net/pipermail/jpms-spec-experts/


More information about the jigsaw-dev mailing list