/*
* 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 4853450 5055963
* @summary InterfaceType tests
* @library ../../lib
*/
(new InterfaceTyp()).run();
}
// Declarations used by tests
interface I2<R> {
}
}
// Generate some interface types to test
// Type mirrors corresponding to the types of the above fields
protected void init() {
for (int i = 0; i < t.length; i++) {
}
}
// TypeMirror methods
public void visitReferenceType(ReferenceType t) {
}
public void visitClassType(ClassType t) {
}
public void visitInterfaceType(InterfaceType t) {
}
});
return res;
}
boolean equals1() {
}
boolean equals2() {
}
// Raw type is not same as type instantiated with unbounded type var.
boolean equals3() {
}
// I1<T1> is same type as I1<T1>
boolean equals4() {
}
"InterfaceTyp.I1<T1>",
"InterfaceTyp.I1<java.lang.String>",
"InterfaceTyp.I1",
"InterfaceTyp.I1.I2<java.lang.String>",
"InterfaceTyp.I1.I2",
"InterfaceTyp.I1<T1>",
"I3<T1>"
},
ordered=true)
for (InterfaceType i : t) {
}
return res;
}
// DeclaredType methods
return t[0].getActualTypeArguments();
}
return t[2].getActualTypeArguments();
}
return t[3].getActualTypeArguments();
}
return t[0].getContainingType();
}
return t[3].getContainingType();
}
return t[6].getContainingType();
}
return t[0].getSuperinterfaces();
}
// InterfaceType method
return t[0].getDeclaration();
}
return t[3].getDeclaration();
}
return t[4].getDeclaration();
}
boolean getDeclarationCaching() {
}
}
// A top-level interface used by tests.
interface I3<T> {
}