4957035: Code given in api is not compilable: docs/api/javax/print/package-summary.html
authorpsadhukhan
Tue, 31 May 2016 12:29:57 +0530
changeset 39014 bb1c478f025b
parent 39013 d6a023d500ef
child 39015 3fa4e9304a9a
4957035: Code given in api is not compilable: docs/api/javax/print/package-summary.html Reviewed-by: serb, jdv
jdk/src/java.desktop/share/classes/javax/print/package.html
--- a/jdk/src/java.desktop/share/classes/javax/print/package.html	Mon May 30 13:42:11 2016 +0300
+++ b/jdk/src/java.desktop/share/classes/javax/print/package.html	Tue May 31 12:29:57 2016 +0530
@@ -122,7 +122,7 @@
 PrintRequestAttributeSet aset = 
 	new HashPrintRequestAttributeSet();
 aset.add(new Copies(5));
-aset.add(MediaSize.A4);
+aset.add(MediaSizeName.ISO_A4);
 aset.add(Sides.DUPLEX);
 PrintService[] services = 
   PrintServiceLookup.lookupPrintServices(psInFormat, aset);