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

[macos] Transferring File objects to Finder fails

    XMLWordPrintable

Details

    • b07
    • aarch64
    • os_x

    Description

      ADDITIONAL SYSTEM INFORMATION :
      macOS / Java 20

      A DESCRIPTION OF THE PROBLEM :
      File objects are not serialized via setData to the clipboard in macOS and as such are recognized as text and thus cannot be pasted to Finder. Writing Files using 'writeObjects' solves this issue as done in JetBrainsRuntime:
      https://github.com/JetBrains/JetBrainsRuntime/commit/24819d974b4a7ab96d998a9a494786a291d89874

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Run the compiled class using current JRE (java Arik)
      2. Switch to Finder and check the content of the clipboard (Edit -> Show Clipboard)
      EXPECTED:
      3. Verify you see "Cliboard contents: file URL / items"
      ACTUAL:
      3. Verify you see "Cliboard contents: unknown"
      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              avu Alexey Ushakov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: