Skip to content

Conversation

@bparrishMines
Copy link
Contributor

@bparrishMines bparrishMines commented Nov 20, 2025

IdentityWeakReference requires a nonnull value so the input to type parameter to getInstance has to be nonnull. Its hard to write a meaningful test since this only causes a compilation error on older Kotlin versions, but I added a unit test to make sure getInstance specifies nonnull.

This fixes flutter/flutter#178756 once plugins update generated code.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@bparrishMines bparrishMines changed the title more specific type parameter [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager Nov 20, 2025
@bparrishMines bparrishMines marked this pull request as ready for review November 20, 2025 20:43
Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tarrinneal tarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 20, 2025
@auto-submit auto-submit bot merged commit 8918543 into flutter:main Nov 20, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 21, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Nov 21, 2025
flutter/packages@b1e2fb0...e67b6be

2025-11-21 danferreiradev@gmail.com [file_selector] Implement
canCreateDirectories on macos and linux (flutter/packages#10443)
2025-11-21 stuartmorgan@google.com [various] Replace deprecated
Color.value in SVG packages (flutter/packages#10482)
2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon]
Fixes compilation error with unbounded type parameter for
InstanceManager (flutter/packages#10483)
2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated
Color.value (flutter/packages#10480)
2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace
deprecated color APIs in platform interface (flutter/packages#10477)
2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478)
2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from
de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
okorohelijah pushed a commit to okorohelijah/flutter that referenced this pull request Nov 21, 2025
…r#178927)

flutter/packages@b1e2fb0...e67b6be

2025-11-21 danferreiradev@gmail.com [file_selector] Implement
canCreateDirectories on macos and linux (flutter/packages#10443)
2025-11-21 stuartmorgan@google.com [various] Replace deprecated
Color.value in SVG packages (flutter/packages#10482)
2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon]
Fixes compilation error with unbounded type parameter for
InstanceManager (flutter/packages#10483)
2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated
Color.value (flutter/packages#10480)
2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace
deprecated color APIs in platform interface (flutter/packages#10477)
2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478)
2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from
de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@bparrishMines bparrishMines deleted the proxy_generics branch November 21, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: pigeon platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webview_flutter_android fails compilation on Kotlin 1.8

3 participants