Confusing compilation error message on incorrect module-info.java (original) (raw)
Tagir Valeev amaembo at gmail.com
Mon May 14 09:00:47 UTC 2018
- Previous message: RFR : JDK-8202832: cycle detection depends on ordering of requires directives
- Next message: [langtools] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: RFR : JDK-8202832: cycle detection depends on ordering of requires directives
- Next message: [langtools] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]