-encoding and -source in module-info.java
Rémi Forax
forax at univ-mlv.fr
Tue Jan 24 14:14:45 PST 2012
On 01/24/2012 11:07 PM, Jesse Glick wrote:
> On 01/24/2012 04:35 PM, Neal Gafter wrote:
>> I agree it would be nice to place these options together in a file
>> for the compiler to consume. I just don't think it should be a "Java
>> programming language
>> source" file.
>
> Well in the current Jigsaw prototype there is only one source of
> metadata, and that is module-info.java. Whether such a file
> extension/name/style is appropriate for module metadata is a
> long-running argument on the list which I did not want to get into.
>
>> as long as it is a source file in the language, it must be subject to
>> those
>> options as well. Which means that specifying them inside the file
>> itself is pretty pointless.
>
> I do not think so. It is admittedly a bit tricky with respect to
> encoding, but the XML spec has managed this.
No, it doesn't work. As an example try to specify utf-16 as encoding of
an XML file.
I only works for US-ASCII, UTF8 and all encodings that contains the 128
first value of the ASCII
and encode them as a byte.
Rémi
More information about the jigsaw-dev
mailing list