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

[Arm64] System.Reflection.Emit.Tests.TypeBuilderIsGenericTypeDefinition.IsGenericTypeDefinition_GenericType_ReturnsTrue [FAIL] #10342

Closed
sdmaclea opened this issue May 17, 2018 · 5 comments

Comments

@sdmaclea
Copy link
Contributor

This is a recent regression on tip.

corerun xunit.console.netcore.exe System.Reflection.Emit.Tests.dll -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.Reflection.Emit.Tests
Discovered:  System.Reflection.Emit.Tests
Starting:    System.Reflection.Emit.Tests
   System.Reflection.Emit.Tests.TypeBuilderIsGenericTypeDefinition.IsGenericTypeDefinition_GenericType_ReturnsTrue [FAIL]
      System.NotSupportedException : The invoked member is not supported before the type is created.
      Stack Trace:
            at System.Reflection.Emit.TypeBuilder.GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
            at System.Type.GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
            at System.Reflection.Emit.ConstructorBuilder.GetParameters()
            at System.Reflection.Emit.ModuleBuilder.GetMemberRefToken(MethodBase method, IEnumerable`1 optionalParameterTypes)
            at System.Reflection.Emit.ModuleBuilder.GetMethodTokenInternal(MethodBase method, IEnumerable`1 optionalParameterTypes, Boolean useMethodDef)
            at System.Reflection.Emit.ILGenerator.GetMethodToken(MethodBase method, Type[] optionalParameterTypes, Boolean useMethodDef)
            at System.Reflection.Emit.ILGenerator.Emit(OpCode opcode, ConstructorInfo con)
@sdmaclea
Copy link
Contributor Author

@atsushikan FYI

@ghost
Copy link

ghost commented May 17, 2018

@stakx - This looks like it was introduced by your change to propagate custom modifiers. (dotnet/coreclr#17881)

@stakx
Copy link
Contributor

stakx commented May 17, 2018

Yes, it indeed looks like I might have caused this. 😱 (Seems my local corefx setup is still not set up right, I should've been able to catch this in time.) This should be resolved by dotnet/coreclr#18036. I'm sorry for the trouble, I'll be more careful next time around.

@stakx
Copy link
Contributor

stakx commented May 18, 2018

@sdmaclea - dotnet/coreclr#18036 has been merged, so this regression should be resolved. Can you confirm this?

@sdmaclea
Copy link
Contributor Author

Fixed via dotnet/coreclr#18036 thanks

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the 3.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants