VoiceOver is unable to announce the correct value for spinner. For JSpinner with maximum value of more than 10, VO announce 10 as 1, 20 as 2 and so on. Probable reason is the "ACCESSIBLE_TEXT_PROPERTY" fired by accessible JTextComponent that leads to wrong range value invoked for accessibility API by VO. Workaround fix is to ensure "ACCESSIBLE_TEXT_PROPOERTY" is not fired in case of JSpinner with numeric values.
Since the fix is in Java Component, verified fix with JAWS on windows. I don't see any side effects in announcement. CI pipeline testing is ok for the proposed fix. ------------- Commit messages: - Spinner value announcement fix Changes: https://git.openjdk.org/jdk/pull/23841/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23841&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8286204 Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/23841.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23841/head:pull/23841 PR: https://git.openjdk.org/jdk/pull/23841
