NFOBoy Active Member Licensed User Longtime User May 21, 2013 #1 Erel, did find something interesting. When trying to pass a non-variable value via CallSub, get a B4X: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float Yet, the same thing is ok when calling a code module, or within the same module. I don't think this was intentional? (worked fine under 2.52) Ross Attachments FloatTest.zip 6.7 KB · Views: 220
Erel, did find something interesting. When trying to pass a non-variable value via CallSub, get a B4X: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float Yet, the same thing is ok when calling a code module, or within the same module. I don't think this was intentional? (worked fine under 2.52) Ross
Erel B4X founder Staff member Licensed User Longtime User May 21, 2013 #2 It is related to an optimization with CallSub and classes. Generally speaking, the types should be identical when using CallSub. The issue with numeric types conversions will be fixed in the next update.
It is related to an optimization with CallSub and classes. Generally speaking, the types should be identical when using CallSub. The issue with numeric types conversions will be fixed in the next update.