Defining open modules and packages

Christian Frommeyer Christian.Frommeyer at
Tue Dec 6 11:34:00 UTC 2016


I heard a lot about jigsaw at Devoxx Belgium this year and got curious what is in the new module system for us. I downloaded ea build 146 and started to experiment. So far it was mostly straight forward. But now I'm struggeling to get open modules (and packages) to work. I tried the syntax described here:

This is also what was presented in various talks at Devoxx. However when trying to compile the module-info file I get this error:

Compiling... src/moduleopen/ error: class, interface, or enum expected
open module moduleopen {
1 error

Unfortunately I wasn't able to find any documentation on a change in syntax. I only found this:

which seems to be a different version of the above. But I wasn't able to match what might be the right alternative for open here. Perhaps someone can clarify this and perhaps even help with some link to documentation on this.

Christian Frommeyer

Senior Software Engineer 2, PD
GetGo Germany GmbH | Alter Schlachthof 51, 76131 Karlsruhe, Germany
christian.frommeyer at

Geschäftsführer: Brian Shytle, Caoimhe C. Ní Ghiosáin, Michael DiFilippo, Sitz: Karlsruhe, Amtsgericht Mannheim HRB713721
This e-mail message and all documents that accompany it may contain privileged or confidential information, and are intended only for the use of the individual or entity to which addressed. Any unauthorized disclosure or distribution of this e-mail message is prohibited. If you have received this e-mail message in error, please notify me immediately. Thank you.

More information about the jigsaw-dev mailing list