Skip to content

Commit d83e971

Browse files
Update Skip class in CF-jdk8u40 to use a class from Java 11
1 parent 8e8f41e commit d83e971

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

instrumentation/java.completable-future-jdk8u40/src/main/java/java/util/concurrent/Skip_Flow.java

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package skip;
2+
3+
import com.newrelic.api.agent.weaver.SkipIfPresent;
4+
5+
/**
6+
* This Skip class instructs JREs 11 and up to skip this instrumentation module,
7+
* and use java.completable-future-jdk11 instead.
8+
* HttpClient was chosen for the Skip because it was introduced with Java 11.
9+
*/
10+
@SkipIfPresent(originalName = "java.net.http.HttpClient")
11+
public class Skip_HttpClient {
12+
}

0 commit comments

Comments
 (0)