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

Regression test java/awt/Toolkit/AutoLoadTest needs to be fixed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta2
    • sparc
    • solaris_8

      This test can skew results of a JavaTest run of regression tests.

      The test in question tests the automated loading of assistive technologies as initiated by the presense of a "accessibility.properties" file in the JRE directory. Classes named in this file are automatically loaded - in this case, the AutoLoad1 class.

      AutoLoadTest places the "accessibility.properties" in the correct directory, but often fails to remove it. Every subsequent execution of the now "polluted" JRE will result in the following exception:

      Exception in thread "main" java.awt.AWTError: Assistive Technology not found: AutoLoad1
              at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:648)
              at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:732)
              at java.awt.Window.getToolkit(Window.java:636)
              at java.awt.Window.init(Window.java:221)
              at java.awt.Window.<init>(Window.java:250)
              at java.awt.Frame.<init>(Frame.java:321)
              at javasoft.sqe.javatest.tool.Startup.<init>(Startup.java:31)
              at javasoft.sqe.javatest.regtest.Main.showTool(Main.java:256)
              at javasoft.sqe.javatest.regtest.Main.go(Main.java:155)
              at javasoft.sqe.javatest.Main.run(Main.java:109)
              at javasoft.sqe.javatest.regtest.Main.main(Main.java:70)

      This test needs to be fixed to ALWAYS, under EVERY circumstance, to remove the accessibility.properties file from the JRE.

            rraysunw Richard Ray (Inactive)
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: