Creating modules with JDK8
forax at univ-mlv.fr
Mon Nov 30 10:39:58 UTC 2015
----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "Cédric Champeau" <cedric.champeau at gmail.com>
> Cc: "jigsaw-dev" <jigsaw-dev at openjdk.java.net>
> Envoyé: Lundi 30 Novembre 2015 10:43:19
> Objet: Re: Creating modules with JDK8
> On 30/11/2015 08:50, Cédric Champeau wrote:
> > :
> > Eventually, I would also not recommend to put a module-info class (jdk 9
> > format) into a jar built for java 8. Just because there are tons of changes
> > that it will blow up
> > at runtime for legacy applications that use classpath scanning, and will
> > fail when they see an unrecognized class format.
> Out of curiosity, you have examples of this? The hyphen makes it an
> invalid identifier so I would expect it should be ignored. At this time
> then the class file version is still 52.0 but maybe you've seen examples
> where something scanning the class path barfs on the new access_flags?
Cedric as a point here,
A hypen is valid in class name otherwise you will not decode package-info.class correctly.
If the application uses ASM to parse the bytecode, ASM will blow up on the unrecognized class file version.
More information about the jigsaw-dev