< prev index next >

test/hotspot/jtreg/runtime/exceptionMsgs/NoClassDefFoundError/libNoClassDefFoundErrorTest.c

Print this page
rev 54273 : 8221398: Move test NoClassDefFoundMsg.java to subdir exceptionMsgs/

*** 1,7 **** /* ! * Copyright (c) 2017, 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. --- 1,7 ---- /* ! * Copyright (c) 2017, 2019, 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.
*** 22,38 **** */ #include <jni.h> JNIEXPORT void JNICALL ! Java_NoClassDefFoundMsg_callDefineClass(JNIEnv *env, jclass klass, jstring className) { const char *c_name = (*env)->GetStringUTFChars(env, className, NULL); (*env)->DefineClass(env, c_name, NULL, NULL, 0); } JNIEXPORT void JNICALL ! Java_NoClassDefFoundMsg_callFindClass(JNIEnv *env, jclass klass, jstring className) { const char *c_name; jclass cls; if (className == NULL) { c_name = NULL; } else { --- 22,38 ---- */ #include <jni.h> JNIEXPORT void JNICALL ! Java_NoClassDefFoundErrorTest_callDefineClass(JNIEnv *env, jclass klass, jstring className) { const char *c_name = (*env)->GetStringUTFChars(env, className, NULL); (*env)->DefineClass(env, c_name, NULL, NULL, 0); } JNIEXPORT void JNICALL ! Java_NoClassDefFoundErrorTest_callFindClass(JNIEnv *env, jclass klass, jstring className) { const char *c_name; jclass cls; if (className == NULL) { c_name = NULL; } else {
< prev index next >