On Tue, 23 Apr 2024 12:59:18 GMT, Adam Sotona <asot...@openjdk.org> wrote:

> ClassFile API `StackMapGenerator` attaches print or hex dump of the method to 
> an error message.
> However there is no such attachment when the stack maps generation is  turned 
> off.
> 
> This patch moves class print/dump to `impl.Util::dumpMethod`, so it is shared 
> by `StackMapGenerator` and `StackCounter` to provide the same level of 
> details in case of an error.
> 
> Please review.
> 
> Thank you,
> Adam

This pull request has now been integrated.

Changeset: ccc0d0f7
Author:    Adam Sotona <asot...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/ccc0d0f7b194a9941e2cadba1c389aa0834c52e4
Stats:     98 lines in 3 files changed: 56 ins; 31 del; 11 mod

8325373: Improve StackCounter error reporting for bad switch cases

Reviewed-by: psandoz

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

PR: https://git.openjdk.org/jdk/pull/18914

Reply via email to