Integrated: 8253660: Need better error report when artifact resolution fails in AotCompiler.java

Erik Joelsson erikj at openjdk.java.net
Mon Oct 19 17:44:13 UTC 2020


On Fri, 25 Sep 2020 20:35:32 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> In AotCompiler.java, if artifact resolution fails, we have no way of diagnosing the error. This patch improves the
> default toString() of ArtifactResolverException to automatically include the toString() method of the root cause. It
> also adds stack trace printing specifically in AotCompiler.java.   I also found a similar issue in PKCS11Test, and
> fixed it by adding the ArtifactResolverException there as cause for the RuntimeException being thrown. This causes the
> stack trace to be printed on failure.  I looked through all other uses of ArtifactResolver, but they are handling the
> exception in a way that already prints the stack trace.

This pull request has now been integrated.

Changeset: 0b510165
Author:    Erik Joelsson <erikj at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/0b510165
Stats:     14 lines in 3 files changed: 13 ins; 0 del; 1 mod

8253660: Need better error report when artifact resolution fails in AotCompiler.java

Reviewed-by: ihse

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

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



More information about the build-dev mailing list