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

[macos] FileAssociationsTest fails to open associated file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      FileAssociationsTest fails to open associated file with following error message.
      I can reproduce this issue always on macOS Catalina.

      java.io.IOException: Failed to open, edit or print /private/tmp/jpackage_jtreg_testing/run/support/tools/jpackage/share/FileAssociationsTest_id1/test.c290a14e/test.jptest1. Error code: -10814
      at java.desktop/sun.lwawt.macosx.CDesktopPeer.lsOpenFile(CDesktopPeer.java:177)
      at java.desktop/sun.lwawt.macosx.CDesktopPeer.open(CDesktopPeer.java:54)
      at java.desktop/java.awt.Desktop.open(Desktop.java:429)
      at jdk.jpackage.test.PackageTest.lambda$addHelloAppFileAssociationsVerifier$16(PackageTest.java:266)
      at jdk.jpackage.test.PackageTest.lambda$withTestFileAssociationsFile$14(PackageTest.java:230)
      at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
      at jdk.jpackage.test.TKit.withTempFile(TKit.java:345)
      at jdk.jpackage.test.PackageTest.withTestFileAssociationsFile(PackageTest.java:226)

        Attachments

          Activity

            People

            • Assignee:
              almatvee Alexander Matveev
              Reporter:
              almatvee Alexander Matveev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: