summaryrefslogtreecommitdiff
path: root/java/sdk_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-02-06 15:24:57 +0000
committerPaul Duffin <paulduffin@google.com>2020-02-10 10:45:29 +0000
commit0bdcb27970c2dc209a43a58d3e7f71a93e879c1f (patch)
treefb259970a05837d01dbc0aa893b9adc92cc4773c /java/sdk_test.go
parent3b531e3c857399ef2461d03d7c0ab8b93a4d21c5 (diff)
java_sdk_library_import - Allow it to replace java_sdk_library
Previously a java_sdk_library_import module did not replace the corresponding java_sdk_library module, even when it was marked as prefer=true. That is because the java_sdk_library_import had an empty set of sources. However, the stubs modules that are created by the java_sdk_library_import did override the stubs modules created by the corresponding java_sdk_library module. That created inconsistent behavior between the cases where only the prebuilt is available and both source and prebuilt are available and the prebuilt is preferred. e.g. assume a java_sdk_library/import module called SDKLIB. When both prebuilt and source modules are available for SDKLIB then even if the prebuilt is preferred then any dependencies on the SDKLIB module would use the source module. This change fixes that inconsisteny by making the array of sources non-empty. Bug: 148080325 Test: m droid && TARGET_BUILD_APPS=Camera2 m Change-Id: I25395e020393921735ada20c5492f27f1260f6c5
Diffstat (limited to 'java/sdk_test.go')
0 files changed, 0 insertions, 0 deletions