ably / ably-flutter

A wrapper around our Cocoa and Java client library SDKs, providing iOS and Android support for those using Flutter and Dart.
https://ably.com/download
Apache License 2.0
60 stars 16 forks source link

ClientOptions.fallbackHosts broken on android #469

Closed owenpearson closed 1 year ago

owenpearson commented 1 year ago

When the fallbackHosts client option is used in an android application the following exception is thrown by the java codec:

java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String[]

The underlying issue is that ably-java expects a fixed sized String[] but ably-flutter attempts to pass the fallback hosts as a dynamic ArrayList<String>.

sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3649