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

Delete NativeAOT-specific CoreLib string resources #63129

Merged
merged 3 commits into from
Dec 26, 2021
Merged

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Dec 25, 2021

No description provided.

@ghost
Copy link

ghost commented Dec 25, 2021

Tagging subscribers to this area: @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: jkotas
Assignees: jkotas
Labels:

area-System.Reflection

Milestone: -

- Fix missing localization of resource strings
- Delete duplicate resource strings where possible
- Delete internal or redundant messages
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good otherwise, thanks!

// with a stub that throws an InvalidProgramException
if (method.IsUnmanagedCallersOnly && (flags & CORINFO_CALLINFO_FLAGS.CORINFO_CALLINFO_LDFTN) == 0)
{
ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramUnmanagedCallersOnly, method);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen if someone tries to call UnmanagedCallersOnly method from managed code after this?

Copy link
Member Author

@jkotas jkotas Dec 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed commit to print same error message as the JIT-based version of the runtime.

@jkotas jkotas closed this Dec 26, 2021
@jkotas jkotas reopened this Dec 26, 2021
@jkotas jkotas merged commit 1c92746 into dotnet:main Dec 26, 2021
@jkotas jkotas deleted the resources branch December 26, 2021 10:58
@ghost ghost locked as resolved and limited conversation to collaborators Jan 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants