Skip to content

fix: RPC ILPP generating invalid IL code when using this instead of this ref for the FastBufferReader/FastBufferWriter parameter of an extension method. #1393

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

Merged
merged 8 commits into from
Nov 10, 2021

Conversation

ShadauxCat
Copy link
Collaborator

Also updated the test so both this and this ref are exercised - the documentation says to use this, but this ref was what worked... so for backward compatibility both have to be supported.

MTT-1566

fixes #1355

Changelog

com.unity.netcode.gameobjects

  • Fixed: Fixed invalid IL code being generated when using this instead of this ref for the FastBufferReader/FastBufferWriter parameter of an extension method.

Testing and Documentation

  • Includes integration tests.
  • No documentation changes or additions were necessary.

… `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method.

Also updated the test so both `this` and `this ref` are exercised - the documentation says to use `this`, but `this ref` was what worked... so for backward compatibility both have to be supported.
@ShadauxCat ShadauxCat self-assigned this Nov 3, 2021
@andrews-unity andrews-unity enabled auto-merge (squash) November 8, 2021 23:45
@unity-cla-assistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@andrews-unity andrews-unity merged commit b84426a into develop Nov 10, 2021
@andrews-unity andrews-unity deleted the fix/invalid_il_code_with_extension_methods branch November 10, 2021 07:09
andrews-unity pushed a commit that referenced this pull request Nov 24, 2021
… `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method. (#1393)

* fix: RPC ILPP generating invalid IL code when using `this` instead of `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method.

Also updated the test so both `this` and `this ref` are exercised - the documentation says to use `this`, but `this ref` was what worked... so for backward compatibility both have to be supported.

* Changelog

* standards fix
andrews-unity added a commit that referenced this pull request Nov 24, 2021
… `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method. (#1393) (#1459)

* fix: RPC ILPP generating invalid IL code when using `this` instead of `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method.

Also updated the test so both `this` and `this ref` are exercised - the documentation says to use `this`, but `this ref` was what worked... so for backward compatibility both have to be supported.

* Changelog

* standards fix

Co-authored-by: Jaedyn Draper <284434+ShadauxCat@users.noreply.github.com>
Co-authored-by: Unity Netcode CI <74025435+netcode-ci-service@users.noreply.github.com>
mollstam pushed a commit to Keepsake-Games/com.unity.netcode.gameobjects that referenced this pull request Feb 13, 2023
… `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method. (Unity-Technologies#1393)

* fix: RPC ILPP generating invalid IL code when using `this` instead of `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method.

Also updated the test so both `this` and `this ref` are exercised - the documentation says to use `this`, but `this ref` was what worked... so for backward compatibility both have to be supported.

* Changelog

* standards fix
mollstam pushed a commit to Keepsake-Games/com.unity.netcode.gameobjects that referenced this pull request Feb 13, 2023
… `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method. (Unity-Technologies#1393) (Unity-Technologies#1459)

* fix: RPC ILPP generating invalid IL code when using `this` instead of `this ref` for the FastBufferReader/FastBufferWriter parameter of an extension method.

Also updated the test so both `this` and `this ref` are exercised - the documentation says to use `this`, but `this ref` was what worked... so for backward compatibility both have to be supported.

* Changelog

* standards fix

Co-authored-by: Jaedyn Draper <284434+ShadauxCat@users.noreply.github.com>
Co-authored-by: Unity Netcode CI <74025435+netcode-ci-service@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InvalidProgramException on RPCs when using serialization extensions
3 participants