Re: Where do empty compilation units belong?

2018-11-20 Thread Jonathan Gibbons
On 11/19/18 9:27 PM, Jayaprakash Artanareeswaran wrote: I have the following folder structure in a module my.module -module-info.java - p -- C.java -- q --- D.java where C.java contains only the package declaration and D.java i

Re: Where do empty compilation units belong?

2018-11-20 Thread Alex Buckley
On 11/19/2018 9:27 PM, Jayaprakash Artanareeswaran wrote: I have the following folder structure in a module my.module -module-info.java - p -- C.java -- q --- D.java where C.java contains only the package declaration and D.java i

Re: Where do empty compilation units belong?

2018-11-20 Thread Alex Buckley
On 11/20/2018 10:54 AM, Alex Buckley wrote: From the above, it's hard to understand for which file an error is reported by Eclipse. In any case, as Jon indicated, if the file D.java is empty, then there is no stream of tokens matching the JLS 7.3 production `CompilationUnit` and thus there is no

Re: Where do empty compilation units belong?

2018-11-20 Thread Jonathan Gibbons
On 11/20/2018 12:26 PM, Alex Buckley wrote: On 11/20/2018 10:54 AM, Alex Buckley wrote: From the above, it's hard to understand for which file an error is reported by Eclipse. In any case, as Jon indicated, if the file D.java is empty, then there is no stream of tokens matching the JLS 7.3 pr

Re: Where do empty compilation units belong?

2018-11-20 Thread Jayaprakash Artanareeswaran
"jigsaw-dev" wrote on 21/11/2018 01:56:42 AM: > From: Alex Buckley > On 11/20/2018 10:54 AM, Alex Buckley wrote: > > From the above, it's hard to understand for which file an error is > > reported by Eclipse. In any case, as Jon indicated, if the file D.java > > is empty, then there is no strea