Skip to content

StackOverflow when binding library containing class with base type set to itself #1031

@entdark

Description

@entdark

Android application type

Classic Xamarin.Android (MonoAndroid12.0, etc.)

Affected platform version

VS 2019 16.11.12, VS for Mac 17.0.7, VS for Mac 17.3.1

Description

I updated a library that I wanted to bind and the new library required dependency of Xamarin.GooglePlayServices.AppSet that targets Android 12. So I had to switch from Android 11 to Android 12 target and thus switched from JDK 8 to JDK 11.
And the library fails to get compiled.
Before the update it had no dependencies and got compiled with Android 11 target just fine.

Logs:
YandexMetrica_build_log_macos_22.08.2022.txt
YandexMetrica_build_log_22.08.2022.txt

Steps to Reproduce

To reproduce the issue try to build the project of question yourself.
The Android binding library project: https://github.com/entdark/Xamarin.AppMetrica/tree/appmetrica-5.0.0
Make sure you compile from the appmetrica-5.0.0 branch.

Did you find any workaround?

The workaround has not been found yet.

Relevant log output

Error while processing '[Method] java.time.temporal.Temporal addTo(java.time.temporal.Temporal temporal, long amount)' in '[Class] java.time.temporal.ChronoUnit': Type 'java.time.temporal.Temporal' was not found.

Related issue

dotnet/android#3291

Metadata

Metadata

Assignees

Labels

bugComponent does not function as intendedgeneratorIssues binding a Java library (generator, class-parse, etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions