changeset 16988:9ccf8c6e7d7e

8177672: DataFlavor.imageFlavor is null when the java.desktop module is not resolved Reviewed-by: prr, mchung, alanb
author serb
date Wed, 05 Apr 2017 20:33:16 +0300
parents e0f119ab7b1c
children 204b01546b68
files src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java	Fri Mar 31 19:42:22 2017 +0300
+++ b/src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java	Wed Apr 05 20:33:16 2017 +0300
@@ -211,6 +211,9 @@
      *     representationClass = java.awt.Image
      *     mimeType            = "image/x-java-image"
      * </pre>
+     * Will be {@code null} if {@code java.awt.Image} is not visible, the
+     * {@code java.desktop} module is not loaded, or the {@code java.desktop}
+     * module is not in the run-time image.
      */
     public static final DataFlavor imageFlavor = createConstant("image/x-java-image; class=java.awt.Image", "Image");