Hi! If anybody else struggles with this, I created a GitHub repo[1] exploring different ways to make reflection work and also wrote about it[2].
so long ... Nicolai [1] https://github.com/CodeFX-org/demo-jigsaw-reflection [2] https://www.sitepoint.com/reflection-vs-encapsulation-in-the-java-module-system/ On 06.12.2016 13:00, Christian Frommeyer wrote: > Hi Claes, > > That's it. I just didn't realize there where different ea builds. Works now > for me. > > Thanks for pointing me to the solution. > > Regards Christian > > -----Original Message----- > From: Claes Redestad [mailto:claes.redes...@oracle.com] > Sent: Dienstag, 6. Dezember 2016 12:41 > To: Christian Frommeyer <christian.fromme...@citrix.com>; > jigsaw-dev@openjdk.java.net > Subject: Re: Defining open modules and packages > > Hi Christian, > > could it be that you've downloaded the regular EA build 146 rather than the > jigsaw EA build 146[1]? > > The changes enabling the new "open" keyword is set to appear in the regular > EA builds starting from build 148 (from there on out I hope there'll be less > difference between the regular EA builds and the jigsaw ones). > > Thanks! > > /Claes > > [1] https://jdk9.java.net/jigsaw/ > > On 2016-12-06 12:34, Christian Frommeyer wrote: >> Hi, >> >> 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: >> >> http://cr.openjdk.java.net/~mr/jigsaw/spec/lang-vm.html >> >> 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/module-info.java:1: 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: >> >> http://openjdk.java.net/projects/jigsaw/doc/lang-vm.html >> >> 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. >> >> Regards >> Christian Frommeyer >> > -- PGP Key: http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509 Web: http://codefx.org a blog about software development https://www.sitepoint.com/java high-quality Java/JVM content http://do-foss.de Free and Open Source Software for the City of Dortmund Twitter: https://twitter.com/nipafx