mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8232624: Java cannot start: NewStringPlatform missing
Reviewed-by: dholmes, alanb, redestad
This commit is contained in:
parent
c483fbe6d6
commit
16f3919405
3 changed files with 11 additions and 1 deletions
|
@ -791,6 +791,13 @@ InitializeEncoding(JNIEnv *env, const char *encname)
|
|||
CHECK_NULL(String_value_ID);
|
||||
}
|
||||
|
||||
// This alias is used for compatibility with 32 bit Windows
|
||||
JNIEXPORT jstring
|
||||
NewStringPlatform(JNIEnv *env, const char *str)
|
||||
{
|
||||
return JNU_NewStringPlatform(env, str);
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL
|
||||
JNU_NewStringPlatform(JNIEnv *env, const char *str)
|
||||
{
|
||||
|
|
|
@ -93,6 +93,9 @@ JNIEXPORT void JNICALL
|
|||
JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail);
|
||||
|
||||
/* Convert between Java strings and i18n C strings */
|
||||
JNIEXPORT jstring
|
||||
NewStringPlatform(JNIEnv *env, const char *str);
|
||||
|
||||
JNIEXPORT const char *
|
||||
GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue