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

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

XMLWordPrintable

    • b166

        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

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

                Created:
                Updated:
                Resolved: