Skip to content

Commit

Permalink
Merge pull request #17118 from JasonFengJ9/accessinline
Browse files Browse the repository at this point in the history
valhalla enable java/lang/Access methods
  • Loading branch information
pshipton authored Apr 6, 2023
2 parents 0ff0696 + 071c73f commit 4075b02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jcl/src/java.base/share/classes/java/lang/Access.java
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public String newStringUTF8NoRepl(byte[] bytes, int offset, int length) {
/*[IF JAVA_SPEC_VERSION < 17]*/
return StringCoding.newStringUTF8NoRepl(bytes, offset, length);
/*[ELSE] JAVA_SPEC_VERSION < 17 */
/*[IF (JAVA_SPEC_VERSION < 21) | INLINE-TYPES]*/
/*[IF JAVA_SPEC_VERSION < 21]*/
return String.newStringUTF8NoRepl(bytes, offset, length);
/*[ELSE] JAVA_SPEC_VERSION < 21 */
return String.newStringUTF8NoRepl(bytes, offset, length, true);
Expand Down Expand Up @@ -696,7 +696,7 @@ public <T> void setCarrierThreadLocal(CarrierThreadLocal<T> carrierThreadlocal,
}
/*[ENDIF] JAVA_SPEC_VERSION >= 19 */

/*[IF (JAVA_SPEC_VERSION >= 21) & !INLINE-TYPES]*/
/*[IF JAVA_SPEC_VERSION >= 21]*/
@Override
public String getLoaderNameID(ClassLoader loader) {
StringBuilder buffer = new StringBuilder();
Expand All @@ -714,7 +714,7 @@ public String getLoaderNameID(ClassLoader loader) {

return buffer.toString();
}
/*[ENDIF] (JAVA_SPEC_VERSION >= 21) & !INLINE-TYPES */
/*[ENDIF] JAVA_SPEC_VERSION >= 21 */

/*[IF INLINE-TYPES]*/
@Override
Expand Down

0 comments on commit 4075b02

Please sign in to comment.