Skip to content

Commit

Permalink
Stop removing add_opens and add_exports configurations
Browse files Browse the repository at this point in the history
See #19850

PiperOrigin-RevId: 574291996
Change-Id: I4c2448876c8bc7cdc6dc3cc391556771b561610d
  • Loading branch information
cushon authored and copybara-github committed Oct 17, 2023
1 parent 3ff7c32 commit 6a7e9ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ public VanillaJavaBuilderResult run(List<String> args) throws IOException {
new PrintWriter(output, true),
fileManager,
diagnosticCollector,
JavacOptions.removeBazelSpecificFlags(optionsParser.getJavacOpts()),
JavacOptions.removeBazelSpecificFlags(
JavacOptions.normalizeOptionsWithNormalizers(
optionsParser.getJavacOpts(), new JavacOptions.ReleaseOptionNormalizer())),
ImmutableList.<String>of() /*classes*/,
sources);
setProcessors(optionsParser, fileManager, task);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ java_library(
"CodecScanningConstants.java",
],
),
add_opens = [
"java.base/java.lang.invoke",
],
deps = [
":codec-scanning-constants",
"//src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec:registered-singleton",
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/google/devtools/build/lib/unsafe/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ java_library(
java_library(
name = "string",
srcs = ["StringUnsafe.java"],
add_opens = [
"java.base/java.lang",
],
deps = [":unsafe-provider"],
)

0 comments on commit 6a7e9ba

Please sign in to comment.