[MRJAR] Entry order matters?
Robert Scholte
rfscholte at apache.org
Sun Sep 4 20:56:57 UTC 2016
On Sun, 04 Sep 2016 22:50:00 +0200, Alan Bateman <Alan.Bateman at oracle.com>
wrote:
> On 04/09/2016 18:01, Robert Scholte wrote:
>
>> Hi,
>>
>> we have this demo application[1] to show how you can generate a
>> multirelease JAR right now with Maven.
>> However, in my case the result for Java9 is very unstable. Most of the
>> time I get something like
>> 9-ea+133-jigsaw-nightly-h5435-20160828
>> BASE
>>
>> but I would expect
>> 9-ea+133-jigsaw-nightly-h5435-20160828
>> FROM BASE -> NINE
>>
>> Once I had both a successful and a failing jar, I compared the content:
> Just to double check. For the failure case then are you sure that that
> "Multi-Release: true" is in the main manifest.
Yes
> Also if you "unzip <jar> -d <somedir>" then does everything look okay?
>
hboutemy $ unzip -t multirelease-0.8-SNAPSHOT_failure.jar | grep class
hboutemy testing: base/Base.class OK
hboutemy testing: META-INF/versions/9/mr/A.class OK
hboutemy testing: META-INF/versions/8/mr/A.class OK
hboutemy testing: mr/A.class OK
hboutemy $ unzip -t multirelease-0.8-SNAPSHOT_success.jar | grep class
hboutemy testing: base/Base.class OK
hboutemy testing: META-INF/versions/8/mr/A.class OK
hboutemy testing: mr/A.class OK
hboutemy testing: META-INF/versions/9/mr/A.class OK
Looks good to me.
Robert
> -Alan
More information about the jigsaw-dev
mailing list