Bug 23769 - Getting NotSupportedException's when performing reflection on generic types defined in dynamic assemblies.
Summary: Getting NotSupportedException's when performing reflection on generic types d...
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Reflection ()
Version: 3.8.0
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-10-12 13:16 UTC by Eirik Tsarpalis
Modified: 2014-10-15 15:22 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Code runs successfully when compiled as standalone application, but fails when run from fsharpi (886 bytes, application/octet-stream)
2014-10-12 13:16 UTC, Eirik Tsarpalis
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Eirik Tsarpalis 2014-10-12 13:16:54 UTC
Created attachment 8388 [details]
Code runs successfully when compiled as standalone application, but fails when run from fsharpi

This is an issue that arises when attempting to perform reflection operations on generic instances of F# lambdas, aka FSharpFunc's. The attached file completes successfully when compiled as a standalone application but fails when run from fsharpi. The reason behind this seems to be that generic lambdas from dynamic assemblies are represented as MonoGenericClass rather than MonoType.
Comment 1 Zoltan Varga 2014-10-15 15:22:16 UTC
Fixed in mono master b58da19a66d5657e5f302de69938cf29d1ac098d.