[Mono.Android] Deprecate removed constructors - #12311
Open
jonathanpeppers wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Marks a set of bound Java constructors (that no longer exist on supported Android API levels) as deprecated via src/Mono.Android/metadata, so consumers get compile-time guidance instead of NoSuchMethodError at runtime.
Changes:
- Added metadata
<attr ... name="deprecated">...</attr>entries to obsolete removed parameterless constructors across several Android namespaces. - Documented the rationale in the metadata file near the existing “Google API breakage” section.
jonathanpeppers
force-pushed
the
jonathanpeppers-obsolete-removed-android-apis
branch
2 times, most recently
from
August 7, 2026 17:51
7fdffd8 to
5433f56
Compare
Mark 15 public constructors removed before the minimum supported Android API level as obsolete through binding metadata, including WebKit constructors whose containing types were removed and therefore lack removed-since annotations. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bded62c4-4507-4f48-a38a-c4162b9d28a0
jonathanpeppers
force-pushed
the
jonathanpeppers-obsolete-removed-android-apis
branch
from
August 7, 2026 17:51
5433f56 to
69502b2
Compare
jonathanpeppers
enabled auto-merge (squash)
August 7, 2026 21:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mark the 11 bound constructors that Android removed before the current minimum supported API level as obsolete.
The current API profile was rescanned through API level 24; no additional public or protected constructors require this treatment.
Closes #5172