Re: Finding module-info.class without loading a jar

2018-02-24 Thread Remi Forax
On February 24, 2018 12:33:25 PM UTC, Mark Raynsford wrote: >On 2018-02-24T07:53:16 + >Alan Bateman wrote: >> >> The JarFile API does this for you. Are you sure you've used the >> constructor that specifies the runtime version? Once you do that then > >> getJarEntry("module-info.class") w

Re: Finding module-info.class without loading a jar

2018-02-24 Thread Mark Raynsford
On 2018-02-24T07:53:16 + Alan Bateman wrote: > > The JarFile API does this for you. Are you sure you've used the > constructor that specifies the runtime version? Once you do that then > getJarEntry("module-info.class") will locate the module-info.class in > the versioned section. Use JarEn

Re: Finding module-info.class without loading a jar

2018-02-23 Thread Alan Bateman
On 23/02/2018 19:18, Mark Raynsford wrote: Hello. I'm analyzing the contents of jar files and basically need to answer the question "is this jar file modularized?". To do this, I search for a module-info.class file in the root of the jar file (and parse it with ASM), or I look for an Automatic-M

Finding module-info.class without loading a jar

2018-02-23 Thread Mark Raynsford
Hello. I'm analyzing the contents of jar files and basically need to answer the question "is this jar file modularized?". To do this, I search for a module-info.class file in the root of the jar file (and parse it with ASM), or I look for an Automatic-Module-Name entry in the jar manifest if there