Some methods weren't updated to work with that newer interface so it's 
irrelevant if this one hasn't. That's a bug and it needs to be fixed.

On Friday, April 16, 2021 at 9:14:34 AM UTC+3 P5music wrote:

> What interface should I use in replacement?
> I see that using onSuccess (two 'c') gives error because it is not an 
> Override.
> Regards
>
> Il giorno venerdì 16 aprile 2021 alle 05:53:05 UTC+2 Shai Almog ha scritto:
>
>> The interface was deprecated because of the typo but some APIs still use 
>> the old deprecated version. 
>>
>> On Thursday, April 15, 2021 at 5:19:28 PM UTC+3 P5music wrote:
>>
>>> I do not know if it is useful but
>>> I noticed that in code like
>>>
>>> webView.addJSCallback("javascript code here;callback.onSuccess();",
>>> new SuccessCallback<BrowserComponent.JSRef>() {
>>> @Override
>>> public void onSucess(BrowserComponent.JSRef value) {
>>> System.out.println("success");
>>> }
>>> });
>>>
>>> the method name onSuccess of
>>> SuccessCallback<BrowserComponent.JSRef>
>>> is written as onSucess (just one 'c')
>>> while the callback method is called successfully from javascript using 
>>> callback.onSuccess().
>>> It is harmless for my project, in fact.
>>>
>>> Did you know it?
>>> Regards
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a935ee79-8559-456e-b469-eccb227b53e9n%40googlegroups.com.

Reply via email to