diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaRuleClasses.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaRuleClasses.java index 19e67fabc8cc12..258954a43ed685 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaRuleClasses.java @@ -107,7 +107,7 @@ public Metadata getMetadata() { return RuleDefinition.Metadata.builder() .name("$java_base_rule") .type(RuleClassType.ABSTRACT) - .ancestors(JavaToolchainBaseRule.class, JavaRuntimeBaseRule.class) + .ancestors(JavaToolchainBaseRule.class) .build(); } } @@ -461,6 +461,7 @@ public Metadata getMetadata() { .type(RuleClassType.ABSTRACT) .ancestors( JavaRule.class, + JavaRuntimeBaseRule.class, // java_binary and java_test require the crosstool C++ runtime // libraries (libstdc++.so, libgcc_s.so). // TODO(bazel-team): Add tests for Java+dynamic runtime.