Skip to content

[Java.Interop] use Type.GetType() for Java.Interop.MarshalMemberBuilder #1193

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

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

jonathanpeppers
Copy link
Member

Context: #1184 (comment)

Previously we were using Assembly.Load() and Assembly.GetType(), which require us to ignore various trimmer warnings.

If we use Type.GetType() with a constant string instead, the trimmer knows how to handle this properly. (The code is also simpler.)

…ilder`

Context: dotnet#1184 (comment)

Previously we were using `Assembly.Load()` and `Assembly.GetType()`,
which require us to ignore various trimmer warnings.

If we use `Type.GetType()` with a constant string instead, the trimmer
knows how to handle this properly. (The code is also simpler.)
@jonpryor jonpryor merged commit c6e3893 into dotnet:main Feb 15, 2024
@jonathanpeppers jonathanpeppers deleted the MarshalMemberBuilder branch February 15, 2024 23:54
jonpryor pushed a commit to dotnet/android that referenced this pull request Feb 21, 2024
Changes: dotnet/java-interop@7d1e705...ae65609

  * dotnet/java-interop@ae656097: [Java.Interop] restore `IL2035` suppression (dotnet/java-interop#1195)
  * dotnet/java-interop@c6e38933: [Java.Interop] use `Type.GetType()` to find `MarshalMemberBuilder` (dotnet/java-interop#1193)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 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