Re: Annotation scanning with java 9 multi version jars
Greg Wilkins
I agree with Mark, I don't believe that MR behaviour should necessarily apply to WAR and EAR files. Sure if you give war file to a java9 ClassLoader, it will happily version WEB-INF/web.xml. However it is not a correct thing to do to give a war file to a java9 ClassLoader, as it will not be able to load any classes from WEB-INF/classes (versioned or not). So while a war is a jar, it is not a classloadable jar. Also the precedent set by the java9 ClassLoader itself is that meta-data is not versioned - ie all of META-INF is excluded from versioning. It's thus reasonable to say that MR considerations should not automagically apply to WEB-INF either. Furthermore, I see no reason for a war file to support MR in any way other than WEB-INF/lib may contain MR jars. Versioning other resources in a war makes no sense as any selection of resourced based on version surely should be the client version not the server version? regards
On 15 January 2018 at 13:17, Mark Thomas <markt@...> wrote: On 09/01/18 15:18, bitonti@... wrote: --
|
|