mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-22 12:51:01 +00:00
This is in response to: https://github.com/openjdk/jdk/pull/30401#issuecomment-4144874584 My current output from this test resembles: 2 listeners at "A" javax.swing.plaf.basic.BasicTextUI$UpdateHandler 0x165938a8 javax.swing.text.DefaultCaret$Handler 0x13ad4587 5 listeners at "B" javax.swing.JEditorPane$JEditorPaneAccessibleHypertextSupport$1 0x408dfc5d javax.swing.JEditorPane$JEditorPaneAccessibleHypertextSupport 0x6badfa89 javax.swing.JEditorPane$AccessibleJEditorPaneHTML 0x8542bca javax.swing.plaf.basic.BasicTextUI$UpdateHandler 0x165938a8 javax.swing.text.DefaultCaret$Handler 0x13ad4587 4 listeners at "C" javax.swing.JEditorPane$AccessibleJEditorPaneHTML 0x8542bca javax.swing.text.html.AccessibleHTML$DocumentHandler 0x2343eccf javax.swing.plaf.basic.BasicTextUI$UpdateHandler 0x165938a8 javax.swing.text.DefaultCaret$Handler 0x13ad4587 6 listeners at "D" javax.swing.JEditorPane$JEditorPaneAccessibleHypertextSupport$1 0x13117e17 javax.swing.JEditorPane$JEditorPaneAccessibleHypertextSupport 0x491f0df7 javax.swing.JEditorPane$AccessibleJEditorPaneHTML 0x8542bca javax.swing.text.html.AccessibleHTML$DocumentHandler 0x2343eccf javax.swing.plaf.basic.BasicTextUI$UpdateHandler 0x165938a8 javax.swing.text.DefaultCaret$Handler 0x13ad4587 I'm surprised at each point there are a different number of DocumentListeners, but this confirms that a new JEditorPane$JEditorPaneAccessibleHypertextSupport$1 is being added after setDocument(..)
Welcome to the JDK!
For build instructions please see the online documentation, or either of these files:
- doc/building.html (html version)
- doc/building.md (markdown version)
See https://openjdk.org/ for more information about the OpenJDK Community and the JDK and see https://bugs.openjdk.org for JDK issue tracking.
Description
Languages
Java
73.9%
C++
14.2%
C
7.9%
Assembly
2.7%
Objective-C
0.4%
Other
0.7%