Skip to content

Commit

Permalink
Merge pull request #335 from theresa-m/fix_19132
Browse files Browse the repository at this point in the history
Add missing call to initCompressionFlag()
  • Loading branch information
pshipton committed Mar 28, 2024
2 parents 24aa06a + c81cd95 commit fe21ca8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/java.base/share/classes/java/lang/String.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2021, 2022 All Rights Reserved
* (c) Copyright IBM Corp. 2021, 2024 All Rights Reserved
* ===========================================================================
*/

Expand Down Expand Up @@ -5309,6 +5309,9 @@ void getBytes(byte[] dst, int srcPos, int dstBegin, byte coder, int length) {
String(byte[] value, byte coder) {
this.value = value;
this.coder = coder;
if (COMPACT_STRINGS && UTF16 == coder) {
initCompressionFlag();
}
}

byte coder() {
Expand Down

0 comments on commit fe21ca8

Please sign in to comment.