Confusing compilation error message on incorrect module-info.java
Tagir Valeev
amaembo at gmail.com
Mon May 14 09:00:47 UTC 2018
Hello!
Consider the following module-info.java file:
class X {}
module test {}
When compiling it with javac 10 I see:
module-info.java:2: error: 'module' or 'open' expected
module test {}
^
1 error
I find it confusing when javac says that 'module' is expected and points to
the 'module' word. Probably the error message should be refined.
With best regards,
Tagir Valeev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20180514/4984d07b/attachment.html>
More information about the compiler-dev
mailing list