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
14 files changed