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

Celeriac doesn't handle static fields of types with generic parameters #68

Open
GoogleCodeExporter opened this issue Mar 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

These cause an exception if we don't skip them. Punting on this for now so we 
can get more programs to work.

Todd reports:
http://www.codeproject.com/Questions/246278/Using-reflection-on-a-abstract-class
-with-genericp

Basically, I think you have you have to fill in the generic type parameters a 
la:


Type constructed = myAbstractGenericType.MakeGenericType(types);
The relevant part of the stack trace:

at System.Reflection.RtFieldInfo.InternalGetValue(Object obj, StackCrawlMark& 
stackMark)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at DotNetFrontEnd.VariableVisitor.PerformStaticInstrumentation(String typeName) 
in 
C:\Projects\daikon-dot-net-front-end\DaikonDotNetFrontEnd\DotNetFrontEnd\Variabl
eVisitor.cs:line 308

For reference, 
http://msdn.microsoft.com/en-us/library/system.reflection.methodinfo.makegeneric
method.aspx

Original issue reported on code.google.com by melonhea...@gmail.com on 24 Jan 2013 at 9:47

@GoogleCodeExporter
Copy link
Author

Original comment by melonhea...@gmail.com on 6 Mar 2013 at 4:03

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Original comment by melonhea...@gmail.com on 4 Jun 2013 at 11:36

  • Changed title: Celeriac doesn't handle static fields of types with generic parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant