diff options
| author | Pete Gillin <peteg@google.com> | 2019-10-18 17:58:52 +0100 |
|---|---|---|
| committer | Pete Gillin <peteg@google.com> | 2019-10-18 17:58:52 +0100 |
| commit | 40abce88f626eb9df53e4dc07dd69bcf598d7965 (patch) | |
| tree | d4b2cc193794041f8e8399d378cbc8758711e35d /JavaLibrary.bp | |
| parent | e3685b03afacd518d2e1a5e42f8692f3d4b597d6 (diff) | |
Fix package-split-across-modules issue in art.module.api.annotations.
This target builds dalvik.system.VersionCodes. Several dalvik.system
classes (DexFile and the various *ClassLoader classes) are in
java.base when sdk_version is core_current. The package is therefore
split across modules. This hasn't been a problem until now since
everything built with and sdk_version of core_current has implicitly
had a java_version of 1.8, but that needs to change (see
https://r.android.com/1145829).
This change explicitly opts this target into java_version 1.9, which
triggers the issue ahead of the Soong change, and then using
patch_module to fix the issue.
Bug: 142896162
Test: m art.module.api.annotations
Change-Id: I71abeded2f1c922f844b8a91c38b8819ca9f7285
Diffstat (limited to 'JavaLibrary.bp')
| -rw-r--r-- | JavaLibrary.bp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/JavaLibrary.bp b/JavaLibrary.bp index a9218dbd53..501b2c5050 100644 --- a/JavaLibrary.bp +++ b/JavaLibrary.bp @@ -917,5 +917,7 @@ java_library { srcs: [ ":api_surface_annotation_files", ], + java_version: "1.9", + patch_module: "java.base", sdk_version: "core_current", } |
