Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289610 Degrade Thread.stop
  3. JDK-8293591

Remove use of Thread.stop from jshell tests

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • 20
    • None
    • tools
    • None
    • b16

    Description

      The jshell tests have an infrastructure class named UITesting that uses Thread.stop. This needs to be updated to remove the dependency on Thread.stop, otherwise there are test failures like this:

      java.lang.UnsupportedOperationException
      at java.base/java.lang.Thread.stop(Thread.java:1658)
      at UITesting.doRunTest(UITesting.java:127)
      at HistoryUITest.testPrevNextSnippet(HistoryUITest.java:51)

      Right now, there seem to be 7 jshell tests that make use of this:

      jdk/jshell/ToolTabSnippetTest.java
      jdk/jshell/ToolTabCommandTest.java
      jdk/jshell/ToolShiftTabTest.java
      jdk/jshell/ToolMultilineSnippetHistoryTest.java
      jdk/jshell/PasteAndMeasurementsUITest.java
      jdk/jshell/IndentUITest.java
      jdk/jshell/HistoryUITest.java

      Attachments

        Issue Links

          Activity

            People

              asotona Adam Sotona
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: