# HG changeset patch # User serb # Date 1491413596 -10800 # Node ID 60dab93625a6272f3732b9410ecd8aae8358cc35 # Parent e926e753a4c7de976905c870ad77ab5a82279f55 8177672: DataFlavor.imageFlavor is null when the java.desktop module is not resolved Reviewed-by: prr, mchung, alanb diff -r e926e753a4c7 -r 60dab93625a6 jdk/src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java --- a/jdk/src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java Fri Mar 31 19:42:22 2017 +0300 +++ b/jdk/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" * + * 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");