JDK-8239827 : The test OpenByUNCPathNameTest.java should be changed to be manual
  • Type: Bug
  • Component: client-libs
  • Affected Version: 8,11,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2020-02-24
  • Updated: 2023-08-07
  • Resolved: 2020-05-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 15 JDK 8 Other
11.0.13-oracleFixed 15 b26Fixed 8u311Fixed openjdk8u372Fixed
Related Reports
Relates :  
Description
After we started executing our tests every night, and this test regularly left the open Notepad window. Looks like the alt+f4 does not a reliable solution. 
One more issue is that the test assumes that the disk C is shared,
which is not necessarily true.

Probably it will be better to change it to be a manual test.
test/java/awt/Desktop/OpenByUNCPathNameTest/OpenByUNCPathNameTest.java

Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/243 Date: 2023-01-26 00:10:38 +0000
26-01-2023

Fix request (8u) Clean backport. The fix for a testbug, clean except the change in the problem list. Review 8u-dev: https://github.com/openjdk/jdk8u-dev/pull/243
26-01-2023

Fix request(11u): Request backport for Oracle parity. Updated manual test succeeds on my Windows system. Test only fix, no risk.
16-10-2021

Git URL: https://github.com/openjdk/jdk/commit/7cc3ba5f9b188e5dd298dbcde3934d08b6101032
24-09-2021

URL: https://hg.openjdk.java.net/jdk/jdk/rev/9129db799214 User: psadhukhan Date: 2020-05-30 05:05:12 +0000
30-05-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/9129db799214 User: arapte Date: 2020-05-28 09:01:07 +0000
28-05-2020

The test fails if the default share on disk C$ is the disabled or different disk is used. But the main problem is in the Notepad app which may not be closed after the test even if the test passed.
02-03-2020