equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
789 CHECK_NULL(String_coder_ID); |
789 CHECK_NULL(String_coder_ID); |
790 String_value_ID = (*env)->GetFieldID(env, strClazz, "value", "[B"); |
790 String_value_ID = (*env)->GetFieldID(env, strClazz, "value", "[B"); |
791 CHECK_NULL(String_value_ID); |
791 CHECK_NULL(String_value_ID); |
792 } |
792 } |
793 |
793 |
794 // This alias is used for compatibility with 32 bit Windows |
|
795 JNIEXPORT jstring |
|
796 NewStringPlatform(JNIEnv *env, const char *str) |
|
797 { |
|
798 return JNU_NewStringPlatform(env, str); |
|
799 } |
|
800 |
|
801 JNIEXPORT jstring JNICALL |
794 JNIEXPORT jstring JNICALL |
802 JNU_NewStringPlatform(JNIEnv *env, const char *str) |
795 JNU_NewStringPlatform(JNIEnv *env, const char *str) |
803 { |
796 { |
804 if (fastEncoding == FAST_UTF_8) |
797 if (fastEncoding == FAST_UTF_8) |
805 return newStringUTF8(env, str); |
798 return newStringUTF8(env, str); |