test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetImplementedInterfaces/getintrf007/getintrf007.cpp
changeset 52776 c05ba185a1d3
parent 51672 b613bf6a10b1
equal deleted inserted replaced
52775:d488477865c0 52776:c05ba185a1d3
    46 static jvmtiEnv *jvmti = NULL;
    46 static jvmtiEnv *jvmti = NULL;
    47 static jint result = PASSED;
    47 static jint result = PASSED;
    48 static jboolean printdump = JNI_FALSE;
    48 static jboolean printdump = JNI_FALSE;
    49 
    49 
    50 static iface_info i2[] = {
    50 static iface_info i2[] = {
    51     {"Lnsk/jvmti/GetImplementedInterfaces/getintrf007$InnerInterface1;"}
    51     { "Lnsk/jvmti/GetImplementedInterfaces/getintrf007$InnerInterface1;" }
    52 };
    52 };
    53 
    53 
    54 static iface_info i3[] = {
    54 static iface_info i3[] = {
    55     {"Lnsk/jvmti/GetImplementedInterfaces/getintrf007$InnerInterface2;"}
    55     { "Lnsk/jvmti/GetImplementedInterfaces/getintrf007$InnerInterface2;" }
    56 };
    56 };
    57 
    57 
    58 static iface_info i7[] = {
    58 static iface_info i7[] = {
    59     {"Lnsk/jvmti/GetImplementedInterfaces/OuterInterface1;"}
    59     { "Lnsk/jvmti/GetImplementedInterfaces/OuterInterface1;" }
    60 };
    60 };
    61 
    61 
    62 static iface_info i8[] = {
    62 static iface_info i8[] = {
    63     {"Lnsk/jvmti/GetImplementedInterfaces/OuterInterface1;"}
    63     { "Lnsk/jvmti/GetImplementedInterfaces/OuterInterface1;" }
    64 };
    64 };
    65 
    65 
    66 static iface_info i9[] = {
    66 static iface_info i9[] = {
    67     {"Lnsk/jvmti/GetImplementedInterfaces/OuterInterface2;"}
    67     { "Lnsk/jvmti/GetImplementedInterfaces/OuterInterface2;" }
    68 };
    68 };
    69 
    69 
    70 static class_info classes[] = {
    70 static class_info classes[] = {
    71     {"InnerClass1", 0, NULL},
    71     { "InnerClass1", 0, NULL },
    72     {"InnerInterface1", 0, NULL},
    72     { "InnerInterface1", 0, NULL },
    73     {"InnerInterface2", 1, i2},
    73     { "InnerInterface2", 1, i2 },
    74     {"InnerClass2", 1, i3},
    74     { "InnerClass2", 1, i3 },
    75     {"OuterClass1", 0, NULL},
    75     { "OuterClass1", 0, NULL },
    76     {"OuterClass2", 0, NULL},
    76     { "OuterClass2", 0, NULL },
    77     {"OuterInterface1", 0, NULL},
    77     { "OuterInterface1", 0, NULL },
    78     {"OuterClass3", 1, i7},
    78     { "OuterClass3", 1, i7 },
    79     {"OuterInterface2", 1, i8},
    79     { "OuterInterface2", 1, i8 },
    80     {"OuterClass4", 1, i9},
    80     { "OuterClass4", 1, i9 },
    81     {"OuterClass5", 0, NULL}
    81     { "OuterClass5", 0, NULL }
    82 };
    82 };
    83 
    83 
    84 #ifdef STATIC_BUILD
    84 #ifdef STATIC_BUILD
    85 JNIEXPORT jint JNICALL Agent_OnLoad_getintrf007(JavaVM *jvm, char *options, void *reserved) {
    85 JNIEXPORT jint JNICALL Agent_OnLoad_getintrf007(JavaVM *jvm, char *options, void *reserved) {
    86     return Agent_Initialize(jvm, options, reserved);
    86     return Agent_Initialize(jvm, options, reserved);