< prev index next > test/hotspot/jtreg/vmTestbase/nsk/jdi/InterfaceType/subinterfaces/subinterfaces001.java
Print this page
/*
! * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
/*
! * Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
classRefType = (ReferenceType) list0.get(0);
List iface0list =
((ClassType) classRefType).interfaces();
! if (iface0list.size() != 1) {
! log3("ERROR : iface0list.size() != 1 in case: Iface3");
expresult = 1;
break;
}
ifaceType = (InterfaceType) iface0list.get(0);
classRefType = (ReferenceType) list0.get(0);
List iface0list =
((ClassType) classRefType).interfaces();
! if (iface0list.size() != 2) { // includes injected java.lang.IdentityObject
! log3("ERROR : iface0list.size() != 2 in case: Iface3");
expresult = 1;
break;
}
ifaceType = (InterfaceType) iface0list.get(0);
classRefType = (ReferenceType) list1.get(0);
List iface1list =
((ClassType) classRefType).interfaces();
! if (iface1list.size() != 1) {
! log3("ERROR : iface1list.size() != 1 in case: Iface2");
expresult = 1;
break;
}
ifaceType = (InterfaceType) iface1list.get(0);
classRefType = (ReferenceType) list1.get(0);
List iface1list =
((ClassType) classRefType).interfaces();
! if (iface1list.size() != 2) { // includes injected java.lang.IdentityObject
! log3("ERROR : iface1list.size() != 2 in case: Iface2");
expresult = 1;
break;
}
ifaceType = (InterfaceType) iface1list.get(0);
classRefType = (ReferenceType) list3.get(0);
List iface3list =
((ClassType) classRefType).interfaces();
! if (iface3list.size() != 1) {
! log3("ERROR : iface3list.size() != 1 in case: Iface1");
expresult = 1;
break;
}
ifaceType = (InterfaceType) iface3list.get(0);
classRefType = (ReferenceType) list3.get(0);
List iface3list =
((ClassType) classRefType).interfaces();
! if (iface3list.size() != 2) { // includes injected java.lang.IdentityObject
! log3("ERROR : iface3list.size() != 2 in case: Iface1");
expresult = 1;
break;
}
ifaceType = (InterfaceType) iface3list.get(0);
< prev index next >