diff options
author | 2024-11-22 23:21:25 +0000 | |
---|---|---|
committer | 2024-11-22 23:21:25 +0000 | |
commit | aaee6ced74650327ff817846f41935c32447033c (patch) | |
tree | 0c7be3111f73aa5d5e4dcfd2bad64754f3191c45 | |
parent | 558cd71f0f6ec8f1af5d49fd9c208411f7b77615 (diff) | |
parent | fb8a239e99c73f588720f54382d855c97e8113f1 (diff) |
Merge "Export javac classes" into main
-rw-r--r-- | errorprone/Android.bp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/errorprone/Android.bp b/errorprone/Android.bp index b559a15c3a60..1428b8965473 100644 --- a/errorprone/Android.bp +++ b/errorprone/Android.bp @@ -31,6 +31,14 @@ java_library_host { "//external/auto:auto_service_annotations", ], + javacflags: [ + // These exports are needed because this errorprone plugin access some private classes + // of the java compiler. + "--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", + "--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", + "--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", + ], + plugins: [ "//external/auto:auto_service_plugin", ], |