Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Jetpack Compose version: 1.7.5
Jetpack Compose component used:
Android Studio Build: 2024.3.1 Canary 2
Kotlin version: 2.1.0-RC2
null
as whichever parameter I want to be the default value, but it doesn't work. Sometimes you want to set a value in the end of the parameter list and the current implementation only allows it if we set all of the parameters before that one. Since the default values are not available to the developer (for example when using a library), it makes it impossible to work with it properly.Actually, the implementation seems kind of buggy. In line 127 the method sets a default value mask if the argument is line 138 the implementation retrieves the
null
, but innull
value successfully instead of using a default value. This potentially results in the java Method being called with anull
value for an argument that is not supposed to be null (e.g. afloat
).My suggestion would be to add some kind of a marker object that can be placed in the argument list of the
invoke(...)
call and it will act as the placeholder for a default value.