diff --git a/jcl/src/java.base/share/classes/com/ibm/jit/JITHelpers.java b/jcl/src/java.base/share/classes/com/ibm/jit/JITHelpers.java index 7ff050b6268..70c0e58b42e 100644 --- a/jcl/src/java.base/share/classes/com/ibm/jit/JITHelpers.java +++ b/jcl/src/java.base/share/classes/com/ibm/jit/JITHelpers.java @@ -566,6 +566,7 @@ public char getCharFromArrayByIndex(Object obj, int index) { } } +/*[IF JAVA_SPEC_VERSION < 17]*/ public boolean canEncodeAsLatin1(byte[] array, int start, int length) { int index = start << 1; if (!IS_BIG_ENDIAN) { @@ -578,6 +579,7 @@ public boolean canEncodeAsLatin1(byte[] array, int start, int length) { } return true; } +/*[ENDIF] JAVA_SPEC_VERSION < 17 */ /** * Returns the first index of the target character array within the source character array starting from the specified