diff options
author | 2022-12-16 13:06:07 +0000 | |
---|---|---|
committer | 2023-01-05 12:59:30 +0000 | |
commit | 15ddcab869a11a4ba4c5fea722b03928a5501420 (patch) | |
tree | 6f857cc0ec1b85beade19f5c45d0f744a53f0028 /runtime/native/java_lang_Thread.cc | |
parent | 74c781dfd9ce830500f84d4cf13806d61692b7ee (diff) |
Reland "Do not create 4-byte sequences in `ConvertUtf16ToModifiedUtf8()`"
This encoding was different from the encoding in dex files
and this caused several issues for classes with descriptors
containing at least one character outside the BMP plane.
For example `Class.forName(nonBmpClass.getName())` would
fail for such classes.
This reverts commit 1b9d442dc906d0158300c5178683f417fa59b026.
Reason for revert: Reland after
https://android-review.googlesource.com/1771690 .
This change no longer affects the operation of JNI functions
dealing with String "UTF" encoding, documented as Modified
UTF-8 but producing an odd variation between Modified UTF-8
and normal UTF-8 in ART due to historical reasons.
Test: New test 183-non-bmp-package-name
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 192935764
Bug: 238888095
Change-Id: I7191e030c7b69e4ea6848fe82d0625683a9331d9
Diffstat (limited to 'runtime/native/java_lang_Thread.cc')
0 files changed, 0 insertions, 0 deletions