RFR: JDK-8294565: IGV: ClassCastException when clicking on an edge in the graph [v3]
Roberto Castañeda Lozano
rcastanedalo at openjdk.org
Mon Oct 24 10:04:56 UTC 2022
On Mon, 24 Oct 2022 07:35:43 GMT, Tobias Holenstein <tholenstein at openjdk.org> wrote:
>> IGV crashed when the user clicked on any edge in the graph because the `select` method of the `SelectProvider` in `LineWidget.java` was faulty.
>>
>> # Implementation
>> - `ActionFactory.createSelectAction` was changed to `CustomSelectAction` since it also supports to invert the selection with `Ctrl/CMD`
>> - The `select` method gets called when the user clicks on an edge. `LineWidget` represents a single connection going out of a node and connecting to one or more nodes (one-to-many). `LineWidget` has a list of `Connection`'s that each represent a single link between two nodes (one-to-one). For each `connection` we collect the from/to `Vertex` (superclass for a node) and put them into a set that we then use to select the nodes that are connected to the user-clicked `LineWidget`.
>
> Tobias Holenstein has updated the pull request incrementally with two additional commits since the last revision:
>
> - whitespace
>
> Co-authored-by: Andrey Turbanov <turbanoff at gmail.com>
> - whitespace
>
> Co-authored-by: Andrey Turbanov <turbanoff at gmail.com>
Looks good, thanks for fixing this!
-------------
Marked as reviewed by rcastanedalo (Reviewer).
PR: https://git.openjdk.org/jdk/pull/10760
More information about the hotspot-compiler-dev
mailing list