Java Modules and Multi-Release Jar

Alan Bateman Alan.Bateman at oracle.com
Mon Oct 1 07:38:06 UTC 2018


On 30/09/2018 18:01, Ralph Goers wrote:
> :
> As for the discussion on why the module info was placed into META-INF/versions/9, I brought up issues with tools that were trying to use Log4j and couldn’t handle finding a class compiled with Java 9 among other classes compiled with Java 7. The suggestion was made to move it into META-INF/version/9 so it would be ignored - which did help with some tools but not others. For example, I think Android still has not been fixed.
>
There was a thread on core-libs-dev in Dec 2017 with subject line 
"Android and Log4j". I see Martin Buchholz replied to say that the 
issues with the Android tools were fixed:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-December/050382.html

In the thread I see Uwe Schindler suggested moving the module-info.class 
META-INF/versions/9 but I don't think it was established if that worked 
around the limitations of the tools or not. One of the linked issues in 
the discussion suggests these tools weren't unpdaetd to ignore class 
files in META-INF until recently:
   https://issuetracker.google.com/u/0/issues/77587908

-Alan.




More information about the jigsaw-dev mailing list