mit-cml / appinventor-extensions

Source code of extensions published for MIT App Inventor
Apache License 2.0
86 stars 94 forks source link

Create checked list from extension YailList #8

Closed ewpatton closed 6 years ago

ewpatton commented 6 years ago

The BLE extension methods take a List<...>, but due to type erasure it is possible to pass an unchecked YailList into the extension, resulting in ClassCastExceptions. This change updates the BLE extension to create a copy of the input list and check/cast the values to the appropriate type before passing it deeper into the extension.

Fixes #7

Change-Id: I72cad6405c5bace7548d6067f2f5fc605d93f267

ewpatton commented 6 years ago

@cavedunissin This PR contains the changes for the test version of the BLE extension I sent you this morning.