4703110: java.awt.Canvas(GraphicaConfiguration): null reaction
Reviewed-by: azvegint, ant
--- a/jdk/src/java.desktop/share/classes/java/awt/Canvas.java Tue Apr 28 14:23:03 2015 -0700
+++ b/jdk/src/java.desktop/share/classes/java/awt/Canvas.java Wed Apr 29 02:55:39 2015 +0300
@@ -58,11 +58,13 @@
}
/**
- * Constructs a new Canvas given a GraphicsConfiguration object.
+ * Constructs a new Canvas given a GraphicsConfiguration object. If null is
+ * passed, then the default GraphicsConfiguration will be used.
*
- * @param config a reference to a GraphicsConfiguration object.
+ * @param config a reference to a GraphicsConfiguration object or null
*
* @see GraphicsConfiguration
+ * @see Component#getGraphicsConfiguration()
*/
public Canvas(GraphicsConfiguration config) {
this();