Skip to content

Conversation

@steveisok
Copy link
Member

Fixed places that used GenericParameterConstraint assuming it was a TypeReference.
Cecil changed GPC to have a TypeReference (ConstraintType) property be available as opposed to
inherit from it.

Fixed places that used GenericParameterConstraint assuming it was a TypeReference.
Cecil changed GPC to have a TypeReference (ConstraintType)  property be available as opposed to
inherit from it.
@steveisok steveisok requested a review from jonpryor August 12, 2019 13:13
@jonpryor jonpryor merged commit 807ed48 into dotnet:master Aug 12, 2019
radekdoulik added a commit that referenced this pull request Aug 13, 2019
This reverts commit 807ed48.

This change doesn't play well with XA/master branch, because it uses
older cecil version without the API break.

I have created mono-2019-08 branch here in Java.Interop for
mono/2019-08 specific changes for
dotnet/android#3449 integration PR.

Changes from mono-2019-08 branch (plus this reverted bump) could be
merged to master, once the integration PR is merged to XA.
jonpryor pushed a commit that referenced this pull request Sep 4, 2019
Commit dotnet/cecil@febbd652 contains an API break, altering the return
type of `AssemblyReader.ReadGenericConstraints()` from a
`Collection<TypeReference>` to a `GenericParameterConstraintCollection`:

	- public Collection<TypeReference> ReadGenericConstraints (GenericParameter generic_parameter)
	+ public GenericParameterConstraintCollection ReadGenericConstraints (GenericParameter generic_parameter)

Bump to mono/cecil/master@cb6c1ca and fix
`AssemblyReader.ReadGenericConstraints()` usage so that the new
`GenericParameterConstraint.ConstraintType` is used instead of
requiring that `ReadGenericConstraints()` return `TypeReference`s.
jonpryor pushed a commit that referenced this pull request Sep 6, 2019
Commit dotnet/cecil@febbd652 contains an API break, altering the return
type of `AssemblyReader.ReadGenericConstraints()` from a
`Collection<TypeReference>` to a `GenericParameterConstraintCollection`:

	- public Collection<TypeReference> ReadGenericConstraints (GenericParameter generic_parameter)
	+ public GenericParameterConstraintCollection ReadGenericConstraints (GenericParameter generic_parameter)

Bump to mono/cecil/master@cb6c1ca and fix
`AssemblyReader.ReadGenericConstraints()` usage so that the new
`GenericParameterConstraint.ConstraintType` is used instead of
requiring that `ReadGenericConstraints()` return `TypeReference`s.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants