Integrated: 8279921: Dump the .class file in jlink debug mode for any failure during transform() of a plugin

Jaikiran Pai jpai at openjdk.java.net
Thu Jan 20 04:53:50 UTC 2022


On Wed, 12 Jan 2022 13:45:00 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review for this change which addresses https://bugs.openjdk.java.net/browse/JDK-8279921?
> 
> The change here builds upon the debugging enhancement that was done in https://github.com/openjdk/jdk/pull/6696 to try and narrow down the problem behind intermittent failures on macos ARM systems. The previous change caught only `IllegalArgumentException` to dump the class file, but as seen in a recent  failure, the exception type itself isn't guaranteed to be the same due to the nature of the issue. So, this commit catches `Exception` to dump the class file. Additionally, the change here also prints out the underlying `ResourcePoolEntry` type to see if that provides any additional hints on why the class content could end being corrupt.

This pull request has now been integrated.

Changeset: e683d4ac
Author:    Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/e683d4ac8d9ee3b0078c5e87a2b3e7d36d7344fc
Stats:     21 lines in 2 files changed: 16 ins; 0 del; 5 mod

8279921: Dump the .class file in jlink debug mode for any failure during transform() of a plugin

Reviewed-by: mchung

-------------

PR: https://git.openjdk.java.net/jdk/pull/7049


More information about the core-libs-dev mailing list