On Wed, 8 Jun 2022 17:04:17 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:
>> At the same, I noticed a weird behaviour with the file. When I ran the test, >> class file was located in another directory but the HTML file was in the >> current directory. Calling `setPage` produced an exception. And >> `PassFailJFrame` started to behave erratically: it didn't close after >> clicking Pass or Fail. I didn't look into the reasons why. But it looks as >> bug in our manual testing framework… > > I can look into this as well. Does this exception occur with the current > version without the HTML file? I have no issues on my end. No, it didn't occur with "embedded" HTML. It occurred with your original version. I compiled the test and `PassFailJFrame` into `./build` directory (javac -d ./build <java-files>` and then ran it `java -cp ./build HtmlTagParserTest`. Since I didn't set the `test.src` property, the HTML file was saved to the current directory but the class file was in another directory, `HtmlTagParserTest.class.getResource` pointed to a non-existent file. However, now with the button… clicking the button would likely generate an exception too. ------------- PR: https://git.openjdk.java.net/jdk/pull/7446