Skip to content

Commit cbfdbac

Browse files
committed
Extract JavaNoThrowMethods logic into a JaCoCo fork
The fork of JaCoCo is compatible with the exec files generated by Jazzer's dumpCoverage. This also reduces the size of the patches maintained in this repo.
1 parent fedcd55 commit cbfdbac

9 files changed

+25
-8910
lines changed

agent/src/main/java/com/code_intelligence/jazzer/generated/BUILD.bazel

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ java_binary(
55
tags = ["manual"],
66
)
77

8+
# To regenerate the list of methods, ensure that your local JDK is as recent as possible and contains `lib/src.zip`.
9+
# This will be the case if you are using the release binaries of the OpenJDK or if the `openjdk-<version>-source`
10+
# package is installed.
11+
# Then, execute
12+
# agent/src/main/java/com/code_intelligence/jazzer/generated/update_java_no_throw_methods_list.sh
13+
# from the Bazel root and copy the file into
14+
# org.jacoco.core/src/org/jacoco/core/internal/flow/java_no_throw_methods_list.dat
15+
# in the CodeIntelligenceTesting/jacoco repository.
816
genrule(
917
name = "java_no_throw_methods_list",
1018
srcs = [
@@ -30,16 +38,3 @@ genrule(
3038
"@local_jdk//:bin/javadoc",
3139
],
3240
)
33-
34-
# To regenerate the list of methods, ensure that your local JDK is as recent as possible and contains `lib/src.zip`.
35-
# This will be the case if you are using the release binaries of the OpenJDK or if the `openjdk-<version>-source`
36-
# package is installed.
37-
# Then, execute
38-
# agent/src/main/java/com/code_intelligence/jazzer/generated/update_java_no_throw_methods_list.sh
39-
# from the Bazel root.
40-
java_library(
41-
name = "JavaNoThrowMethods",
42-
srcs = ["JavaNoThrowMethods.java"],
43-
resources = ["java_no_throw_methods_list.dat"],
44-
visibility = ["//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:__pkg__"],
45-
)

agent/src/main/java/com/code_intelligence/jazzer/generated/JavaNoThrowMethods.java

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)