Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test JI delegate cache change. #7478

Closed
wants to merge 1 commit into from
Closed

Test JI delegate cache change. #7478

wants to merge 1 commit into from

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented Oct 20, 2022

No description provided.

jonpryor pushed a commit to dotnet/java-interop that referenced this pull request Oct 24, 2022
)

Context: 1720628
Context: dotnet/android#7478
Context: https://github.com/buyaa-n/runtime/blob/7a62a22db186fda42dad6cbd681cf056fcf6aee6/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/PlatformAttributes.cs#L52-L62

In order to compile classic MonoAndroid bindings that contain the new
.NET `[SupportedOSPlatform]` attributes, we have a dummy copy that we
can compile against.  However this copy does not allow
`AttributeTargets.Field`, so compiling with 1720628 causes:

	/Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-33/mcw/Dalvik.Bytecode.IOpcodes.cs(646,4):
	error CS0592: Attribute global::System.Runtime.Versioning.SupportedOSPlatformAttribute' 
	is not valid on this declaration type. It is only valid on 'assembly, module, 
	class, struct, constructor, method, property, indexer, event' declarations. 

Update our copy to have the same `AttributeTargets` as the .NET
version so we can compile on classic.
@jonpryor
Copy link
Member

jonpryor commented Nov 1, 2022

Superseded by PR #7502.

@jonpryor jonpryor closed this Nov 1, 2022
@jpobst jpobst deleted the ji-delegate-cache branch December 15, 2022 16:22
@jpobst jpobst restored the ji-delegate-cache branch December 15, 2022 16:22
@jpobst jpobst deleted the ji-delegate-cache branch December 15, 2022 16:22
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants