aa41dac8d8
When parsing API signature files, check-flagged-apis relies on ClassItem.superClass to get the parent class of a class or interface. That method always returns null for interfaces. When generating api-versions.xml, metalava marks interface classes as inheriting from java/lang/Object: <class name="android/os/Parcelable" since="1"> <extends name="java/lang/Object"/> [...] </class> This confuses check-flagged-apis when comparing data parsed from both sources, as the symbol signatures will be identical, but the superclass entries differ. Work around this by explicitly marking all interfaces as inheriting from java/lang/Object when parsing API signature files. Bug: 334870672 Test: atest --host check-flagged-apis-test Change-Id: Icbb8f7d4c3d4232a083289a778b347e33a0856ab |
||
---|---|---|
.. | ||
aconfig | ||
acp | ||
apicheck | ||
atree | ||
canoninja | ||
check-flagged-apis | ||
compliance | ||
docker | ||
droiddoc | ||
finalization | ||
fs_config | ||
ide_query | ||
libhost | ||
metadata | ||
perf | ||
product_config | ||
protos | ||
rbcrun | ||
releasetools | ||
sbom | ||
signapk | ||
signtos | ||
tool_event_logger | ||
warn | ||
zipalign | ||
ziptime | ||
Android.bp | ||
auto_gen_test_config.py | ||
auto_gen_test_config_test.py | ||
brillo-clang-format | ||
build-runfiles.cc | ||
BUILD.bazel | ||
characteristics_rro_generator.py | ||
check_elf_file.py | ||
check_identical_lib.sh | ||
check_radio_versions.py | ||
compare_builds.py | ||
event_log_tags.py | ||
exercise_compare_builds | ||
extract_kernel.py | ||
fat16copy.py | ||
fileslist_util.py | ||
find_static_candidates.py | ||
findleaves.py | ||
fixlinebreaks.sh | ||
generate-enforce-rro-android-manifest.py | ||
generate-notice-files.py | ||
generate-self-extracting-archive.py | ||
generate_gts_shared_report.py | ||
java-event-log-tags.py | ||
list_files.py | ||
lunchable | ||
merge-event-log-tags.py | ||
mk2bp_catalog.py | ||
mk2bp_partition.py | ||
normalize_path.py | ||
post_process_props.py | ||
post_process_props_unittest.xml | ||
print_module_licenses.sh | ||
soong_to_convert.py | ||
stub_diff_analyzer.py | ||
test_extract_kernel.py | ||
test_post_process_props.py | ||
warn.py | ||
whichgit |