Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Support System.Reflection.Emit.ILGeneration tests on the full .NET Framework #14604

Merged
merged 1 commit into from
Jan 3, 2017
Merged

Support System.Reflection.Emit.ILGeneration tests on the full .NET Framework #14604

merged 1 commit into from
Jan 3, 2017

Conversation

hughbe
Copy link

@hughbe hughbe commented Dec 17, 2016

  • Coreclr doesn't do security checks when emitting the body of a dynamic method. This menas it doesn't throw a FieldAccessException, as the full .NET framework does

Fixes #13252

@karelz
Copy link
Member

karelz commented Dec 19, 2016

@DnlHarvey @atsushikan @joshfree can you please review the change?

@@ -28,10 +28,16 @@ public void ILGenerator_Int_Type(bool skipVisibility)
VerifyILGenerator(instanceCallBack, target, 0);
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "The coreclr ignores the skipVisibility value of DynamicMethod.")]
public void GetILGenerator_Int_Module_CoreclrIgnoresSkipVisibility()
Copy link
Member

Choose a reason for hiding this comment

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

Do we need a corresponding test that validates on .NET Framework that skipVisibility is not ignored?

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks, @hughbe.

@stephentoub stephentoub merged commit 4b039b4 into dotnet:master Jan 3, 2017
@karelz karelz modified the milestone: 2.0.0 Jan 4, 2017
@hughbe hughbe deleted the lightweight-desktop branch February 6, 2017 02:17
dotnet-bot pushed a commit that referenced this pull request Jan 13, 2018
…ter. (#14604)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
dotnet-bot pushed a commit that referenced this pull request Jan 13, 2018
…ter. (#14604)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
safern pushed a commit that referenced this pull request Jan 16, 2018
…ter. (#14604)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
safern pushed a commit that referenced this pull request Jan 16, 2018
…ter. (#14604)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Support System.Reflection.Emit.ILGeneration tests on the full .NET Framework

Commit migrated from dotnet/corefx@4b039b4
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.

6 participants