RFR: JDK-8296665: IGV: Show dialog with stack trace for exceptions

Tobias Hartmann thartmann at openjdk.org
Fri Nov 11 09:26:36 UTC 2022


On Wed, 9 Nov 2022 13:10:54 GMT, Tobias Holenstein <tholenstein at openjdk.org> wrote:

> Currently in IGV when an exception occurs a small red icon in the bottom right corner appears. The user often does not see this and if he sees it, usually not immediately when the error occurs:
> <img width="447" alt="exception now" src="https://user-images.githubusercontent.com/71546117/200838912-1dab349d-ac60-49bf-8546-95455367ba7f.png">
> 
> The exception reporting level is changed to `1000` (Level.SEVERE) in IGV to show a dialog with the stack-trace. The user can still close it and continue the work: 
> <img width="1529" alt="exception suggestion" src="https://user-images.githubusercontent.com/71546117/200838877-346ef916-72b2-435c-8425-e799663efee5.png">
> 
> To test invert something like the following somewhere in the codebase 
> 
> try {
>     int i=1/0;
> } catch (Exception e) {
>     throw new RuntimeException(e);
> }

Looks good to me. If we start hitting too many exceptions, we might need to (temporarily) disable this again.

Just wondering, isn't there a config file or something to put such Netbeans specific settings instead of passing them as `-J-D` args to the JVM?

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

Marked as reviewed by thartmann (Reviewer).

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


More information about the hotspot-compiler-dev mailing list