5311N/A * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. 5311N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5311N/A * This code is free software; you can redistribute it and/or modify it 5311N/A * under the terms of the GNU General Public License version 2 only, as 5311N/A * published by the Free Software Foundation. 5311N/A * This code is distributed in the hope that it will be useful, but WITHOUT 5311N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5311N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5311N/A * version 2 for more details (a copy is included in the LICENSE file that 5311N/A * You should have received a copy of the GNU General Public License version 5311N/A * 2 along with this work; if not, write to the Free Software Foundation, 5311N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5311N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5311N/A * or visit www.oracle.com if you need additional information or have any 5311N/A * @summary AbstractCollection.toArray(T[]) doesn't return the given array 5311N/A * in concurrent modification. 5311N/A * @author Ulf Zibis, David Holmes 5311N/A * Sets the values that size() will return on each use. The next 5311N/A * call to size will return sizes[0], then sizes[1] etc. This allows us 5311N/A * to emulate a concurrent change to the contents of the collection 5311N/A * without having to perform concurrent changes. If sizes[n+1] contains 5311N/A * a larger value, the collection will appear to have shrunk when 5311N/A * iterated; if a smaller value then the collection will appear to have 5311N/A /* can change collection's size after each invocation */ 5311N/A // Check array type conversion 5311N/A // Check incompatible type of target array 5311N/A // Check more elements than a.length 5311N/A // Check equal elements as a.length 5311N/A // Check equal elements as a.length 5311N/A // Check less elements than expected, but more than a.length 5311N/A // Check less elements than expected, but equal as a.length 5311N/A // Check more elements than expected and more than a.length 5311N/A // Check more elements than expected, but equal as a.length 5311N/A // Check more elements than expected, but less than a.length 5311N/A * Major target of this testcase, bug 7121314. 5311N/A // Check equal elements as a.length, but less than expected 5311N/A // Check less elements than a.length and less than expected 5311N/A //--------------------- Infrastructure ---------------------------