(original) (raw)

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.