Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8216008

-Djavax.accessibility.assistive_technologies empty list leads to exception

XMLWordPrintable

    • 9
    • b21
    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      Java 9 or higher, since revision c44bb2ab6ab7

      A DESCRIPTION OF THE PROBLEM :
      Using the command line flag -Djavax.accessibility.assistive_technologies with an empty list causes exception because it tries to load a class named empty string.

      Revision http://hg.openjdk.java.net/jdk9/client/jdk/rev/c44bb2ab6ab7 changes the parsing of this argument so that no list provided is interpreted as one single class named "" (empty string) rather than an empty list.

      REGRESSION : Last worked in version 8u191

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Add -Djavax.accessibility.assistive_technologies flag (empty list) to run any java program with a awt/swing component.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Load no assistive technologies classes.
      ACTUAL -
      java.awt.AWTError: Assistive Technology not found:
      at java.desktop/java.awt.Toolkit.newAWTError(Toolkit.java:472)

      Exception trying to load empty string "" assistive technology.

      CUSTOMER SUBMITTED WORKAROUND :
      Create an empty implementation subclassing javax.accessibility.AccessibilityProvider and provide that class as -Djavax.accessibility.assistive_technologies so the list is not empty.

      FREQUENCY : always


        1. Main.java
          0.2 kB
          Pardeep Sharma

            serb Sergey Bylokhov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: