This repository was archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
ccrewrite fails to read assembly that has non-escaped comma in nested type names #340
Labels
Comments
SergeyTeplyakov
added a commit
to SergeyTeplyakov/CodeContracts
that referenced
this issue
Jan 21, 2016
ccrewrite will not fail if metadata has non-escaped comma in the type name.
Merged
SergeyTeplyakov
added a commit
that referenced
this issue
Feb 7, 2016
@SergeyTeplyakov please reopen this issue. With this fix we get crashes in ccrewrite for generic types: the class with it's attribute looks something like this:
which will generate a type name like this:
and an error like this:
|
Could you provide a small repo solution that I can try? I can revert the change if solution would be complicated... |
tom-englert
added a commit
to tom-englert/CodeContracts
that referenced
this issue
Jun 28, 2016
…eserved char, so fall back to standard behavior in this case.
I have a fix already in #445, just looking how to add a test for this scenario. Did you have a test for the original issue? |
Yep, I've faced an issue but that was not a critical and more artificial case. I'll role this change back. |
It seems that you fix it in your fork. If you'll create PR I'll merge it. |
#445 is a pull request 😏 |
Oops! Thought it is an old one. Will merge once appveyor will be finished. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Related to the #186.
If old version of ccrewrite could generate type names that with non-espcaped comman inside when working with Roslyn-generated code.
It means, that instead of
SomeGeneric+Nested<Int32\,String>
it can generateSomeGeneric+Nested<Int32,String>
. But actually both cases are correct and metadata reader should deal with both of them smoothly.The text was updated successfully, but these errors were encountered: