コード例 #1
0
/*
 * Class:     sun_instrument_InstrumentationImpl
 * Method:    redefineClasses0
 * Signature: ([Ljava/lang/instrument/ClassDefinition;)V
 */
JNIEXPORT void JNICALL Java_sun_instrument_InstrumentationImpl_redefineClasses0
  (JNIEnv * jnienv, jobject implThis, jobjectArray classDefinitions) {
    JPLISAgent *    agent = getJPLISAgentFromJavaImpl(jnienv, implThis);
    if ( agent == NULL ) {
        createAndThrowInternalError(jnienv);
    }
    else {
        redefineClasses(jnienv, agent, classDefinitions);
    }
    return;
}
コード例 #2
0
/*
 * Class:     sun_instrument_InstrumentationImpl
 * Method:    redefineClasses0
 * Signature: ([Ljava/lang/instrument/ClassDefinition;)V
 */
JNIEXPORT void JNICALL Java_sun_instrument_InstrumentationImpl_redefineClasses0
  (JNIEnv * jnienv, jobject implThis, jlong agent, jobjectArray classDefinitions) {
    redefineClasses(jnienv, (JPLISAgent*)agent, classDefinitions);
}