T7086601b.java revision 1105
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * This code is free software; you can redistribute it and/or modify it
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * under the terms of the GNU General Public License version 2 only, as
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * published by the Free Software Foundation.
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * This code is distributed in the hope that it will be useful, but WITHOUT
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * version 2 for more details (a copy is included in the LICENSE file that
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * accompanied this code).
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * You should have received a copy of the GNU General Public License version
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * 2 along with this work; if not, write to the Free Software Foundation,
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill * or visit www.oracle.com if you need additional information or have any
ec67ff5275de072883193d284121ba1b97404bb3Phil Ostler * questions.
ec67ff5275de072883193d284121ba1b97404bb3Phil Ostler * @bug 7086601
ec67ff5275de072883193d284121ba1b97404bb3Phil Ostler * @summary Error message bug: cause for method mismatch is 'null'
ec67ff5275de072883193d284121ba1b97404bb3Phil Ostlerpublic class T7086601b {
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill X("X", false),
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill Y("Y", false),
d39dadc72724b84431f2aebfdf107344bc099173sean oneill Z("Z", false);
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill private TypeKind(String typeStr, boolean isInterface) {
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill this == Z && other == Y ||
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill private MethodCallKind(String invokeString, int arity) {
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill public static void main(String... args) throws Exception {
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill //create default shared JavaCompiler - reused across multiple compilations
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill JavaCompiler comp = ToolProvider.getSystemJavaCompiler();
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null);
16feaab5fbad30aecf489c34b3777a6b76025803sean oneill for (MethodCallKind mck : MethodCallKind.values()) {
public JavaSource() {
return source;
throw new AssertionError("Error thron when compiling the following code:\n" + source.getCharContent(true));
check();
void check() {
checkCount++;
boolean errorExpected = false;
boolean glb_exists = true;
glb_exists = true;
glb_exists = false;
if (glb_exists) break;
boolean errorFound;
errorFound = true;