/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6415641 6377302
* @summary Concurrent collections are permitted to lie about their size
* @author Martin Buchholz
*/
@SuppressWarnings("unchecked")
public class BiggernYours {
boolean found = false;
found = true;
break;
}
}
if(!found)
}
}
}
m2.descendingMap());
}
s2.descendingSet());
}
}
}
unexpected(t);
}
try {
}
}
try {
}
}
try {
}
}
try {
}
}
@SuppressWarnings("serial")
new ConcurrentSkipListMap(),
new ConcurrentSkipListMap() {
new ConcurrentSkipListSet(),
new ConcurrentSkipListSet() {
new CopyOnWriteArraySet(),
new CopyOnWriteArraySet() {
new CopyOnWriteArrayList(),
new CopyOnWriteArrayList() {
new TreeSet(),
new TreeSet() {
new ConcurrentHashMap(),
new ConcurrentHashMap() {
new ConcurrentLinkedDeque(),
new ConcurrentLinkedDeque() {
new ConcurrentLinkedQueue(),
new ConcurrentLinkedQueue() {
new LinkedTransferQueue(),
new LinkedTransferQueue() {
new LinkedBlockingQueue(),
new LinkedBlockingQueue() {
new LinkedBlockingDeque(),
new LinkedBlockingDeque() {
new ArrayBlockingQueue(5),
new ArrayBlockingQueue(5) {
new PriorityBlockingQueue(5),
new PriorityBlockingQueue(5) {
}
//--------------------- Infrastructure ---------------------------
else fail(x + " not equal to " + y);}
catch (Throwable t) {
else unexpected(t);}}
public void run() {
}