--- old/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2018-10-01 10:04:30.002026000 +0700 +++ new/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2018-10-01 10:04:29.554026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -554,7 +554,7 @@ MediaSize size = getMediaSize(media, service, page); Paper paper = new Paper(); - float dim[] = size.getSize(1); //units == 1 to avoid FP error + float[] dim = size.getSize(1); //units == 1 to avoid FP error double w = Math.rint((dim[0]*72.0)/Size2DSyntax.INCH); double h = Math.rint((dim[1]*72.0)/Size2DSyntax.INCH); paper.setSize(w, h);