RFR(M): jdk11u-dev backport 8205611: Improve the wording of LinkageErrors to include module and class loader information

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Mon May 6 12:49:22 UTC 2019


Hi Martin, 

thanks for looking at this!

Best regards,
  Goetz.

> -----Original Message-----
> From: Doerr, Martin
> Sent: Montag, 6. Mai 2019 14:41
> To: Hohensee, Paul <hohensee at amazon.com>; Lindenmaier, Goetz
> <goetz.lindenmaier at sap.com>; jdk-updates-dev at openjdk.java.net; hotspot-
> dev at openjdk.java.net
> Subject: RE: RFR(M): jdk11u-dev backport 8205611: Improve the wording of
> LinkageErrors to include module and class loader information
> 
> Hi Götz,
> 
> thanks for backporting.
> It would have been much easier to backport the issues in the correct order.
> I think you resolved that correctly.
> 
> The jdk11u backport of JDK-8212937 diffs from the jdk12u version.
> diff -r test/hotspot/jtreg/runtime/LoaderConstraints/
> ../jdk12u/test/hotspot/jtreg/runtime/LoaderConstraints/
> diff -r
> test/hotspot/jtreg/runtime/LoaderConstraints/duplicateParentLE/Test.java
> ../jdk12u/test/hotspot/jtreg/runtime/LoaderConstraints/duplicateParentLE/Te
> st.java
> 72c72
> <                 System.out.println("Expected: " + expectedErrorMessage_part1 +
> "<id>" + expectedErrorMessage_part2 + "<id>" + expectedErrorMessage_part3
> + "\n" +
> ---
> >                 System.out.println("Expected: " + expectedErrorMessage_part1 +
> "<id>" + expectedErrorMessage_part2 + "\n" +
> 
> But that's not related to your change.
> 
> So your backport change looks good. Reviewed.
> 
> Best regards,
> Martin
> 
> 
> -----Original Message-----
> From: jdk-updates-dev <jdk-updates-dev-bounces at openjdk.java.net> On
> Behalf Of Hohensee, Paul
> Sent: Freitag, 12. April 2019 19:21
> To: Lindenmaier, Goetz <goetz.lindenmaier at sap.com>; jdk-updates-
> dev at openjdk.java.net; hotspot-dev at openjdk.java.net
> Subject: Re: RFR(M): jdk11u-dev backport 8205611: Improve the wording of
> LinkageErrors to include module and class loader information
> 
> Looks good. I applied the patch and the modified tests pass on my osx laptop.
> 
> Paul
> 
> On 4/11/19, 7:04 AM, "jdk-updates-dev on behalf of Lindenmaier, Goetz" <jdk-
> updates-dev-bounces at openjdk.java.net on behalf of
> goetz.lindenmaier at sap.com> wrote:
> 
>     Hi,
> 
>     I would like to backport 8205611. Unfortunately, it does not apply clean,
>     as 8212937, a fix that came after 8205611, was already downported.
>     I needed changes at two places:
>     Deleting obsolete java_lang_ClassLoader::describe_external() does
>     not apply because 8212937 changed in this function. See
>     http://cr.openjdk.java.net/~goetz/wr19/8205611-
> exMsg_LinkageError/webrev/src/hotspot/share/classfile/javaClasses.cpp.udiff.
> html
>     Further the exception message in duplicateParentLE/Test.java had to be
> adapted.
> 
>     New webrev for 11u-dev:
>     http://cr.openjdk.java.net/~goetz/wr19/8205611-
> exMsg_LinkageError/webrev/
>     Original change:
>     http://hg.openjdk.java.net/jdk/jdk12/rev/bef02342d179
>     Original bug:
>     https://bugs.openjdk.java.net/browse/JDK-8205611
> 
>     The conflicting change in jdk12:
>     http://hg.openjdk.java.net/jdk/jdk12/rev/de25152e5ec4
>     And downported to jdk11:
>     http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/8687668b33da
>     https://bugs.openjdk.java.net/browse/JDK-8212937
> 
>     See also the original review thread:
>     http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-
> June/033325.html
>     http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-July/033409.html
> 
>     Best regards,
>       Goetz.
> 
> 
> 



More information about the hotspot-dev mailing list