Skip to content

FixAbstractMethods bails out unless assembly references Java.Lang.Object #5968

Description

@sbomer

FixAbstractMethodsStep won't do any work unless it's running on an assembly that references Java.Lang.Object:

https://github.com/xamarin/xamarin-android/blob/9add575ba0e25903b6894f40fcd53e6d51785fae/src/Xamarin.Android.Build.Tasks/Linker/MonoDroid.Tuner/FixAbstractMethodsStep.cs#L86-L89

From @jonpryor in https://github.com/xamarin/xamarin-android/pull/5748/files#r641035596:

#5965
#4225 (comment)
There is no requirement that an assembly which contains types which need to have abstract methods "fixed up" also contain a type reference to Java.Lang.Object, much less a reference to Mono.Android.dll! Such is the glory of transitive references.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: TrimmingIssues with ILLink or NativeAOT related to trimming.possibly-staleIssues that are potentially no longer relevant.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions