jjg@489: /* ohair@554: * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. jjg@489: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jjg@489: * jjg@489: * This code is free software; you can redistribute it and/or modify it jjg@489: * under the terms of the GNU General Public License version 2 only, as jjg@489: * published by the Free Software Foundation. jjg@489: * jjg@489: * This code is distributed in the hope that it will be useful, but WITHOUT jjg@489: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jjg@489: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jjg@489: * version 2 for more details (a copy is included in the LICENSE file that jjg@489: * accompanied this code). jjg@489: * jjg@489: * You should have received a copy of the GNU General Public License version jjg@489: * 2 along with this work; if not, write to the Free Software Foundation, jjg@489: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jjg@489: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * questions. jjg@489: */ jjg@489: jjg@489: /* jjg@489: * This file is not a regular test, but is processed by ./TreeScannerTest.java, jjg@489: * which verifies the operation of the javac TreeScanner. jjg@489: * @bug 6923080 jjg@489: * @summary TreeScanner.visitNewClass should scan tree.typeargs jjg@489: */ jjg@489: class T6923080 { jjg@489: void test() { jjg@489: C c = new C(); // exercises TreeScanner.visitNewClass jjg@489: Object o = c.m(); // exercises TreeScanner.visitApply jjg@489: } jjg@489: jjg@489: static class C { jjg@489: C() { } jjg@489: T m() { return null; } jjg@489: } jjg@489: }