Valid characters in a module name

Alan Bateman Alan.Bateman at oracle.com
Mon Jan 2 08:55:32 UTC 2017


On 02/01/2017 08:38, Ess Kay wrote:

> My questions relate to module names in the binary form in the 
> module-info.class file.
>
> My scenario is a utility that reads Java bytecode files and performs 
> transformations on them as specified by the user in a text script 
> file.  In the text script file the user currently specifies package, 
> class, field and method names (amongst other things). If the utility 
> and others like it is to support Java 9 then the user must be able to 
> specify module names that match those within module-info.class files.  
> These names must then be parsed from within the script. This is where 
> the difficulties arise.
How are class and other names encoded in the "text script file" today? 
Just asking because they may contain characters from the entire Unicode 
code space.

-Alan


More information about the jigsaw-dev mailing list