Skip to content

Commit

Permalink
made String.indexOf intrinsic optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dougxc committed Mar 9, 2017
1 parent 9eea440 commit 2d278eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
@ClassSubstitution(String.class)
public class AMD64StringSubstitutions {

@MethodSubstitution(isStatic = true)
// Only exists in JDK <= 8
@MethodSubstitution(isStatic = true, optional = true)
public static int indexOf(char[] source, int sourceOffset, int sourceCount,
@ConstantNodeParameter char[] target, int targetOffset, int targetCount,
int origFromIndex) {
Expand Down

0 comments on commit 2d278eb

Please sign in to comment.