-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor JPF_java_lang_String to fix invalid casting of value field
Most methods in JPF_java_lang_String fail as the `value` field have changed from char[] to a byte[] since JEP 254. Instead of retrieving the value field, and performing operations on that value field to return a result (which is now complex as the value field now being a byte[] and and having a coder which specifies the different encoding), we turn JPF String object into a VM String object using MJIEnv.getStringObject and then delegates the method call to that VM object.
- Loading branch information
Showing
1 changed file
with
22 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters