jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

Gunnar Morling
Hi,

I'm trying to run jdeps --generate-module-info for a non-MR JAR which
depends on an MR JAR.

If I don't specify the "--multi-release" option, it fails with this message:

    "dependency-xyz.jar is a multi-release jar file but
--multi-release option is not set".

If I specify the option, it fails, too:

    "main-abc.jar is not a multi-release jar file but --multi-release
option is set".

Is there a way to resolve this issue (I'm on Java 11.0.1+13)? Perhaps
the value of --multi-release should only be applied to MR JARs
actually supporting that version?

Thanks for any pointers,

--Gunnar
Reply | Threaded
Open this post in threaded view
|

Re: jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

Gunnar Morling
Looks like this already has been reported:

    https://bugs.openjdk.java.net/browse/JDK-8207162

--Gunnar

Am So., 16. Dez. 2018 um 12:15 Uhr schrieb Gunnar Morling
<[hidden email]>:

>
> Hi,
>
> I'm trying to run jdeps --generate-module-info for a non-MR JAR which
> depends on an MR JAR.
>
> If I don't specify the "--multi-release" option, it fails with this message:
>
>     "dependency-xyz.jar is a multi-release jar file but
> --multi-release option is not set".
>
> If I specify the option, it fails, too:
>
>     "main-abc.jar is not a multi-release jar file but --multi-release
> option is set".
>
> Is there a way to resolve this issue (I'm on Java 11.0.1+13)? Perhaps
> the value of --multi-release should only be applied to MR JARs
> actually supporting that version?
>
> Thanks for any pointers,
>
> --Gunnar
Reply | Threaded
Open this post in threaded view
|

Re: jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

Alan Bateman
In reply to this post by Gunnar Morling
On 16/12/2018 11:15, Gunnar Morling wrote:

> Hi,
>
> I'm trying to run jdeps --generate-module-info for a non-MR JAR which
> depends on an MR JAR.
>
> If I don't specify the "--multi-release" option, it fails with this message:
>
>      "dependency-xyz.jar is a multi-release jar file but
> --multi-release option is not set".
>
> If I specify the option, it fails, too:
>
>      "main-abc.jar is not a multi-release jar file but --multi-release
> option is set".
>
> Is there a way to resolve this issue (I'm on Java 11.0.1+13)? Perhaps
> the value of --multi-release should only be applied to MR JARs
> actually supporting that version?
>
> Thanks for any pointers,
>
I think this is JDK-8210502 [1] that Mandy fixed for JDK 12. Would it be
possible to try out the latest JDK 12 EA build [2] to be sure?

I see your other mail with a link to JDK-8207162, that may be a dup.

-Alan

[1] https://bugs.openjdk.java.net/browse/JDK-8210502
[2] http://jdk.java.net/12/

Reply | Threaded
Open this post in threaded view
|

Re: jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

Gunnar Morling
Hi Alan,

Yes, I just tested with build 12-ea+23 and can confirm things work as
expected. Is there any chance that this gets backported into 11.0.4?

Thanks to you and Mandy,

--Gunnar

Am So., 16. Dez. 2018 um 19:01 Uhr schrieb Alan Bateman
<[hidden email]>:

>
> On 16/12/2018 11:15, Gunnar Morling wrote:
> > Hi,
> >
> > I'm trying to run jdeps --generate-module-info for a non-MR JAR which
> > depends on an MR JAR.
> >
> > If I don't specify the "--multi-release" option, it fails with this message:
> >
> >      "dependency-xyz.jar is a multi-release jar file but
> > --multi-release option is not set".
> >
> > If I specify the option, it fails, too:
> >
> >      "main-abc.jar is not a multi-release jar file but --multi-release
> > option is set".
> >
> > Is there a way to resolve this issue (I'm on Java 11.0.1+13)? Perhaps
> > the value of --multi-release should only be applied to MR JARs
> > actually supporting that version?
> >
> > Thanks for any pointers,
> >
> I think this is JDK-8210502 [1] that Mandy fixed for JDK 12. Would it be
> possible to try out the latest JDK 12 EA build [2] to be sure?
>
> I see your other mail with a link to JDK-8207162, that may be a dup.
>
> -Alan
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8210502
> [2] http://jdk.java.net/12/
>
Reply | Threaded
Open this post in threaded view
|

Re: jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

Severin Gehwolf
Hi Gunnar,

On Sun, 2018-12-16 at 22:20 +0100, Gunnar Morling wrote:
> Hi Alan,
>
> Yes, I just tested with build 12-ea+23 and can confirm things work as
> expected. Is there any chance that this gets backported into 11.0.4?

JDK-8210502 seems to be already backported to JDK 11. According to JBS
it will be part of 11.0.2 which according to [1] will appear mid
January 2019.

Thanks,
Severin

[1] http://openjdk.java.net/projects/jdk-updates/

> Thanks to you and Mandy,
>
> --Gunnar
>
> Am So., 16. Dez. 2018 um 19:01 Uhr schrieb Alan Bateman
> <[hidden email]>:
> >
> > On 16/12/2018 11:15, Gunnar Morling wrote:
> > > Hi,
> > >
> > > I'm trying to run jdeps --generate-module-info for a non-MR JAR which
> > > depends on an MR JAR.
> > >
> > > If I don't specify the "--multi-release" option, it fails with this message:
> > >
> > >      "dependency-xyz.jar is a multi-release jar file but
> > > --multi-release option is not set".
> > >
> > > If I specify the option, it fails, too:
> > >
> > >      "main-abc.jar is not a multi-release jar file but --multi-release
> > > option is set".
> > >
> > > Is there a way to resolve this issue (I'm on Java 11.0.1+13)? Perhaps
> > > the value of --multi-release should only be applied to MR JARs
> > > actually supporting that version?
> > >
> > > Thanks for any pointers,
> > >
> >
> > I think this is JDK-8210502 [1] that Mandy fixed for JDK 12. Would it be
> > possible to try out the latest JDK 12 EA build [2] to be sure?
> >
> > I see your other mail with a link to JDK-8207162, that may be a dup.
> >
> > -Alan
> >
> > [1] https://bugs.openjdk.java.net/browse/JDK-8210502
> > [2] http://jdk.java.net/12/
> >

Reply | Threaded
Open this post in threaded view
|

Re: jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

Alan Bateman
In reply to this post by Gunnar Morling
On 16/12/2018 21:20, Gunnar Morling wrote:
> Hi Alan,
>
> Yes, I just tested with build 12-ea+23 and can confirm things work as
> expected. Is there any chance that this gets backported into 11.0.4?
>
The fix went into jdk-updates/jdk11u in October so it should make it
into a 11.0.x release.

-Alan
Reply | Threaded
Open this post in threaded view
|

Re: jdeps --generate-module-info fails when mixing MR JARs and non-MR JARs

Gunnar Morling
Excellent; thank you so much!

Am Mo., 17. Dez. 2018 um 09:06 Uhr schrieb Alan Bateman
<[hidden email]>:

>
> On 16/12/2018 21:20, Gunnar Morling wrote:
> > Hi Alan,
> >
> > Yes, I just tested with build 12-ea+23 and can confirm things work as
> > expected. Is there any chance that this gets backported into 11.0.4?
> >
> The fix went into jdk-updates/jdk11u in October so it should make it
> into a 11.0.x release.
>
> -Alan