aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/BUILD
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-02-10 17:57:42 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2017-02-10 18:19:36 +0000
commit0eaff4437cf23da52983a659456e707d6fd372e3 (patch)
tree3992796fa469c13a4da5c05df5ccd4062672ecc7 /src/main/java/com/google/devtools/build/lib/BUILD
parent350a4166a8122d912773d9e93ea089f66b870ff5 (diff)
Install support for checking for 'one version' correctness of java_binary
rules: If the collection of jars for a java_binary contain more than one instance of the same class, one of them will be arbitrarily loaded at runtime. This is problematic if the instances of the class are not identical, as methods or fields from one class version might be missing in the other, leading to runtime failures when methods are missing. This change adds an experimental flag to enable one version enforcement. The actual enforcement tool will come later. -- PiperOrigin-RevId: 147166361 MOS_MIGRATED_REVID=147166361
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/BUILD')
-rw-r--r--src/main/java/com/google/devtools/build/lib/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/BUILD b/src/main/java/com/google/devtools/build/lib/BUILD
index de72cb7f85..e56adb2d19 100644
--- a/src/main/java/com/google/devtools/build/lib/BUILD
+++ b/src/main/java/com/google/devtools/build/lib/BUILD
@@ -768,6 +768,7 @@ java_library(
"rules/java/JavaToolchainRule.java",
"rules/java/JavaToolchainSkylarkApiProvider.java",
"rules/java/JvmConfigurationLoader.java",
+ "rules/java/OneVersionCheckActionBuilder.java",
"rules/java/ProguardHelper.java",
"rules/java/ProguardLibrary.java",
"rules/java/ProguardLibraryRule.java",