--- old/src/java.desktop/unix/classes/sun/awt/X11/XRobotPeer.java 2018-10-01 10:04:58.142026000 +0700 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XRobotPeer.java 2018-10-01 10:04:57.706026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -106,14 +106,14 @@ @Override public int getRGBPixel(int x, int y) { - int pixelArray[] = new int[1]; + int[] pixelArray = new int[1]; getRGBPixelsImpl(xgc, x, y, 1, 1, pixelArray, useGtk); return pixelArray[0]; } @Override public int [] getRGBPixels(Rectangle bounds) { - int pixelArray[] = new int[bounds.width*bounds.height]; + int[] pixelArray = new int[bounds.width*bounds.height]; getRGBPixelsImpl(xgc, bounds.x, bounds.y, bounds.width, bounds.height, pixelArray, useGtk); return pixelArray; @@ -131,5 +131,5 @@ private static synchronized native void keyReleaseImpl(int keycode); private static synchronized native void getRGBPixelsImpl(X11GraphicsConfig xgc, - int x, int y, int width, int height, int pixelArray[], boolean isGtkSupported); + int x, int y, int width, int height, int[] pixelArray, boolean isGtkSupported); }