This PR automatically calls CAccessible.dispose() as Components are removed from the AWT hierarchy.
CAccessible objects will then be lazily recreated via `CAccessible.getCAccessible()` if the removed Component is reattached. I don't have a great understanding of this area of code / subject matter, but this appears to resolve #8381236. ------------- Commit messages: - 8381236: add unit test - 8381236: dispose CAccessibles when they're removed from hierarchy Changes: https://git.openjdk.org/jdk/pull/30578/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30578&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8381236 Stats: 153 lines in 2 files changed: 149 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/30578.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30578/head:pull/30578 PR: https://git.openjdk.org/jdk/pull/30578
