test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS301/hs301t003/hs301t003.cpp
changeset 51774 79dc492c00ab
parent 51551 e409244ce72e
child 52184 672bc2213cef
equal deleted inserted replaced
51773:720fd6544b03 51774:79dc492c00ab
    24 #include <jvmti.h>
    24 #include <jvmti.h>
    25 #include "agent_common.h"
    25 #include "agent_common.h"
    26 #include <string.h>
    26 #include <string.h>
    27 #include "jvmti_tools.h"
    27 #include "jvmti_tools.h"
    28 
    28 
    29 #ifdef __cplusplus
       
    30 extern "C" {
    29 extern "C" {
    31 #endif
       
    32 #define FILE_NAME "nsk/jvmti/scenarios/hotswap/HS301/hs301t003/MyClass"
    30 #define FILE_NAME "nsk/jvmti/scenarios/hotswap/HS301/hs301t003/MyClass"
    33 #define CLASS_NAME "Lnsk/jvmti/scenarios/hotswap/HS301/hs301t003/MyClass;"
    31 #define CLASS_NAME "Lnsk/jvmti/scenarios/hotswap/HS301/hs301t003/MyClass;"
    34 
    32 
    35 void JNICALL callbackClassPrepare(jvmtiEnv *jvmti_env,
    33 void JNICALL callbackClassPrepare(jvmtiEnv *jvmti_env,
    36                                JNIEnv* jni_env,
    34                                JNIEnv* jni_env,
   104             nsk_printf(" Agent:: Failed to enable notification.\n");
   102             nsk_printf(" Agent:: Failed to enable notification.\n");
   105         }
   103         }
   106     }
   104     }
   107     return JNI_OK;
   105     return JNI_OK;
   108 }
   106 }
   109 #ifdef __cplusplus
       
   110 }
   107 }
   111 #endif