--- old/src/java.desktop/share/classes/java/awt/image/SampleModel.java 2016-03-16 17:00:15.521123189 +0530 +++ new/src/java.desktop/share/classes/java/awt/image/SampleModel.java 2016-03-16 17:00:15.357123189 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, 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 @@ -126,7 +126,7 @@ throw new IllegalArgumentException("Width ("+w+") and height ("+ h+") must be > 0"); } - if (size >= Integer.MAX_VALUE) { + if (size > Integer.MAX_VALUE) { throw new IllegalArgumentException("Dimensions (width="+w+ " height="+h+") are too large"); }