Thursday, September 10, 2020

Weird type error in lambdas with generics, with JsInterop

Hi all,

I'm trying to migrate some of my JSNI code to JsInterop. In particular HTML File System API which I'm using with Cordova and in the browser for testing.
There are some full-on Callback interfaces which uses generics and lambdas in the code. I'm not 100% certain if it's JsInterop or Lambda related (I'm running GWT 2.8.2).

In various places I'm now getting errors like this:

SEVERE: Uncaught Exception on client: (TypeError) : Cannot read property '<REDACTED>' of undefined (TypeError) : Cannot read property 'inspectivity' of undefined
at Unknown.onSuccess_321_g$(
at Unknown.getRootDataDirectory_0_g$(
at Unknown.clear_99_g$(

There is no property '<REDACTED>" anywhere - it's the application name. And the error is on line 475 which is the "onSuccess" method method definition.

I have been trying various approaches all afternoon and it seems to get better when I rewrite parts of the code to avoid generics.

Has anyone else run into similar problems?


You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment