Skip to content

[pigeon] ClassCastException with Kotlin generated code #115914

@giovannilattanziocrispy

Description

E/BasicMessageChannel#dev.flutter.pigeon.AndroidVideoPlayerApi.pause(12252): Failed to handle message
E/BasicMessageChannel#dev.flutter.pigeon.AndroidVideoPlayerApi.pause(12252): java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

Dart side
Schermata 2022-11-23 alle 12 03 53

Kotlin side
Schermata 2022-11-23 alle 12 04 31

The same code works in Java because the cast checks the instance of the value
Schermata 2022-11-23 alle 12 10 51

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: crashStack traces logged to the consolefound in release: 3.3Found to occur in 3.3found in release: 3.6Found to occur in 3.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions