# HG changeset patch # User psadhukhan # Date 1464677997 -19800 # Node ID bb1c478f025b2dc6fa6e56b09caf5d429ab8a07a # Parent d6a023d500ef77153c6ffe843e94ade6642e93b8 4957035: Code given in api is not compilable: docs/api/javax/print/package-summary.html Reviewed-by: serb, jdv diff -r d6a023d500ef -r bb1c478f025b 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);