Skip to content

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

@sbomer

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.

Metadata

Metadata

Assignees

Labels

Area: LinkerIssues when linking assemblies.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions