903N/A/*
903N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
903N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
903N/A *
903N/A * This code is free software; you can redistribute it and/or modify it
1011N/A * under the terms of the GNU General Public License version 2 only, as
903N/A * published by the Free Software Foundation.
903N/A *
903N/A * This code is distributed in the hope that it will be useful, but WITHOUT
903N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
903N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
903N/A * version 2 for more details (a copy is included in the LICENSE file that
903N/A * accompanied this code).
903N/A *
903N/A * You should have received a copy of the GNU General Public License version
903N/A * 2 along with this work; if not, write to the Free Software Foundation,
903N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
903N/A *
903N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
903N/A * or visit www.oracle.com if you need additional information or have any
903N/A * questions.
903N/A */
903N/A
903N/A/*
903N/A * @test
903N/A * @bug 6639645
903N/A * @summary Modeling type implementing missing interfaces
903N/A * @library ../../../../lib
903N/A * @clean MissingGenericInterface1
903N/A * @build JavacTestingAbstractProcessor Generator
903N/A * @compile -XprintRounds -processor Generator TestMissingGenericInterface1.java
903N/A * @run main TestMissingGenericInterface1
903N/A */
903N/A
903N/Aimport java.util.*;
903N/A
903N/Apublic class TestMissingGenericInterface1 implements MissingGenericInterface1<String> {
903N/A public static void main(String... args) {
903N/A new TestMissingGenericInterface1().run();
903N/A }
903N/A
903N/A @Override
903N/A public void run() {
903N/A Class<?> c = getClass();
903N/A System.out.println("class: " + c);
903N/A System.out.println("superclass: " + c.getSuperclass());
903N/A System.out.println("generic superclass: " +c.getGenericSuperclass());
903N/A System.out.println("interfaces: " + Arrays.asList(c.getInterfaces()));
903N/A System.out.println("generic interfaces: " + Arrays.asList(c.getGenericInterfaces()));
903N/A }
903N/A
903N/A}