Skip to content

refactor(input)!: Remove PointerPoint op_Explicit shim (BC43) - #23678

Merged
Xiaoy312 merged 1 commit into
feature/breakingchangesfrom
dev/xygu/20260707/bc43-remove-pointerpoint-op-explicit
Jul 8, 2026
Merged

Xiaoy312 merged 1 commit into
feature/breakingchangesfrom
dev/xygu/20260707/bc43-remove-pointerpoint-op-explicit

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: unoplatform/uno-private#2125

PR Type:

💬 Other... — breaking change (binary-compat shim removal), part of the Uno 7.0 breaking-changes epic.

What changed? 🚀

Removes the hand-emitted op_Explicit binary-compatibility shim on Microsoft.UI.Input.PointerPoint (BC43), leaving only the implicit conversion operators:

  • Deletes the public static PointerPoint op_Explicit(PointerPoint) method in src/Uno.UI/UI/Input/WinRT/PointerPoint.cs. It was a manually-declared static method (name-matching the C# explicit-conversion operator) that existed solely to keep the historical op_Explicit IL symbol alive after the conversion was switched from explicit to implicit during the InteractionTracker work. C# forbids declaring both implicit and explicit conversions between the same two types (CS0557), so the raw method was hand-emitted next to the implicit operator and hidden with [EditorBrowsable(Never)].
  • build/PackageDiffIgnore.xml records the removed public member under the 6.5 baseline so the API-diff gate accepts the intentional binary break.
  • Marks BC43 done in the rollup checklist (specs/050-breaking-changes-rollup/spec.md).

No behavioral change: the two implicit operator conversions between MUX and WUX PointerPoint remain. Uno-internal explicit-cast call sites (e.g. PointerRoutedEventArgs) already bind to the implicit operator, and there are no in-repo callers of the literal op_Explicit method (the only other reference is a generic op_Implicit/op_Explicit name check in Uno.ReferenceImplComparer, which needs no change).

Validation: Uno.UI.Skia (net10.0) builds clean (0 warnings, 0 errors). The package-diff gate itself only runs in CI against the released baseline; the ignore entry was format-verified against the tool's SignatureExtensions.ToSignature and the existing entries.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — N/A, removal of an unused, hidden binary-compat shim with no behavioral surface.
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — N/A, binary-only break with no source migration action (see below); already covered by the migration guide's blanket "recompile every library against 7.0" guidance.
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

Breaking change — impact & migration path

Impact: Pure binary-compatibility break, not a source break. The only thing affected is a third-party binary compiled against an older Uno that emitted an IL call to the literal op_Explicit method — it would throw MissingMethodException at runtime. That symbol was [EditorBrowsable(Never)] and depending on it directly is extremely rare (practically near-zero real-world impact). C# source that casts a MUX PointerPoint to a WUX PointerPoint — whether via explicit-cast syntax or implicitly — still compiles unchanged through the implicit operator.

Migration: Recompile against 7.0. No source changes required. Binary compatibility is expected to break at a major version anyway.

@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Jul 7, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221171 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 84

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 84 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • Focus_FocusVisual_Properties.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • ImageSourceUrlMsAppDataScheme.png
    • DropDownButtonPage.png-dark
    • Gamepad_Enumeration.png-dark
    • Image_AnimatedWebP.png
    • Image_UseTargetSize.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ImageIconPage.png-dark
    • ImageIconPage.png

The op_Explicit method was hand-emitted alongside the implicit
conversion operators purely to preserve binary compatibility: C#
forbids declaring both implicit and explicit conversions between the
same two types (CS0557), and switching the historical explicit
operator to implicit is a binary (not source) break. The shim kept old
binaries that emitted an IL call to op_Explicit linking.

At a major version that binary break is acceptable. There is no source
break: C# explicit-cast syntax already binds to the implicit operator,
and there are no in-repo callers of the literal method. Record the
removed member in PackageDiffIgnore.xml (6.5 baseline) so the
package-diff gate accepts the intentional break.

Part of #2125 (Phase 3 breaking changes).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc43-remove-pointerpoint-op-explicit branch from a3a011c to 57727d9 Compare July 8, 2026 15:06
@Xiaoy312
Xiaoy312 enabled auto-merge July 8, 2026 15:07
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221296 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 82

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 82 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImagesInlineInFlipView.png-dark
    • ImagesInlineInFlipView.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Examples.png
    • ImageIconPage.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • DisplayInformation.png-dark
    • Gamepad_Enumeration.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ExpanderColorValidationPage.png-dark
    • Focus_FocusVisual_Properties.png-dark

@Xiaoy312
Xiaoy312 merged commit deaac6c into feature/breakingchanges Jul 8, 2026
67 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20260707/bc43-remove-pointerpoint-op-explicit branch July 8, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants