T7002837.java revision 3145:ab5e0a945e78
174462Salfred/* 274462Salfred * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3258581Shrs * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4258581Shrs * 5258581Shrs * This code is free software; you can redistribute it and/or modify it 699775Salfred * under the terms of the GNU General Public License version 2 only, as 7258581Shrs * published by the Free Software Foundation. Oracle designates this 8258581Shrs * particular file as subject to the "Classpath" exception as provided 9258581Shrs * by Oracle in the LICENSE file that accompanied this code. 10258581Shrs * 11258581Shrs * This code is distributed in the hope that it will be useful, but WITHOUT 12258581Shrs * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13258581Shrs * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14258581Shrs * version 2 for more details (a copy is included in the LICENSE file that 15258581Shrs * accompanied this code). 16258581Shrs * 1799775Salfred * You should have received a copy of the GNU General Public License version 18258581Shrs * 2 along with this work; if not, write to the Free Software Foundation, 19258581Shrs * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20258581Shrs * 21258581Shrs * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22258581Shrs * or visit www.oracle.com if you need additional information or have any 23258581Shrs * questions. 24258581Shrs */ 25258581Shrs/* 26258581Shrs * @test 27258581Shrs * @bug 7002837 8064365 8078660 28258581Shrs * 2999775Salfred * @summary Diamond: javac generates diamond inference errors when in 'finder' mode 3074462Salfred * @author mcimadamore 311903Swollman * @compile -Werror -XDrawDiagnostics -XDfind=diamond T7002837.java 3250473Speter * 331839Swollman */ 341839Swollman 351839Swollmanclass T7002837<X extends java.io.Serializable & Comparable<?>> { 361839Swollman T7002837() {} 371839Swollman { new T7002837<Integer>(); } 381839Swollman} 391903Swollman