platform_build/tools/check-flagged-apis
Mårten Kongstad aa41dac8d8 check-flagged-apis: make interfaces inherit from java/lang/Object
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
2024-05-22 15:13:54 +02:00
..
src/com/android/checkflaggedapis check-flagged-apis: make interfaces inherit from java/lang/Object 2024-05-22 15:13:54 +02:00
Android.bp check-flagged-apis: simplify unit test dependencies 2024-04-18 10:25:33 +02:00
check-flagged-apis.sh Use complete api-versions.xml for module-lib and system-server 2024-05-03 12:13:32 +01:00
OWNERS check-flagged-apis: add new CLI to verify @FlaggedApi APIs 2024-04-16 10:32:17 +02:00