is ClassLoader.loadClass() supposed to work on module-info classes?
cedric.champeau at gmail.com
Fri Dec 4 14:18:00 UTC 2015
> Just a related question:
> Do you expect the class file format to change in JDK9 and for what
> features? If it is only for supporting the module-info.class then would
> something like the following be possible:
> javac -source 9 -target 8 -mp modlib ...
> ...and produce JDK8 compatible class files + JDK9 compatible
> module-info.class file(s) ?
> Regards, Peter
The problem with this approach is that you are using JDK 9 to produce JDK 8
classes (so in theory, you should either use JDK 8, or use bootclasspath.
And I'm not sure what would be the implications of using bootclasspath to
compile a module file).
More information about the jigsaw-dev