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

DataFlavor.imageFlavor is null when the java.desktop module is not resolved

    Details

    • Subcomponent:
    • Resolved In Build:
      b166

      Backports

        Description

        Module java.datatransfer actually depends on java.desktop while it should not.

        1) j.awt.datatransfer.DataFlavor spec mentions java.awt.Image belonging to "java.desktop" and has constant field imageFlavor which represents java.awt.Image class

        2) when starting with "--limit-modules java.base,java.datatransfer" (and not having java.desktop resolved) this static field is set to null

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  dbessono Dmitry Bessonov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: