From 1d68e48084a015c394d5e4b0f7150e271449215d Mon Sep 17 00:00:00 2001 From: Sorin Basca Date: Thu, 8 Sep 2022 16:48:01 +0100 Subject: [PATCH] Open java.lang for dokka Bug: 240421555 Test: m sdk Change-Id: I38df207ca2c891df24fe32f711b2767cb17195ec --- java/droiddoc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/java/droiddoc.go b/java/droiddoc.go index 9b1f43b4c..fc95184f1 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -755,6 +755,7 @@ func dokkaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, return rule.Command(). BuiltTool("dokka"). Flag(config.JavacVmFlags). + Flag("-J--add-opens=java.base/java.lang=ALL-UNNAMED"). Flag(srcJarDir.String()). FlagWithInputList("-classpath ", dokkaClasspath, ":"). FlagWithArg("-format ", "dac").