Closed salmonb closed 9 months ago
The warning is coming from Closure and is caused by https://github.com/google/closure-compiler/issues/3686 which currently has an open PR.
To work around it, you can create a new file src/main/resources/externs.js
with the following content:
So I think j2cl plugin cannot do anything about this and the issue should be closed.
You're right, and thanks a lot for your PR on Closure.
I also tried your externs.js
and it works indeed.
So I'm closing this issue.
Thank you!
hi,
As discussed on Gitter, I open this issue to report a possible J2CL bug about incorrect warnings on a correct JSInterop code.
Here is a JSInterop class that extends
CanvasRenderingContext2D
to add thesetTransform(DOMMatrixReadOnly)
method missing in elemental2 version 1.2.1:And here is a simple user code:
Although everything looks correct, the J2CL reports these warnings:
I made a Maven project based on the code above as a functioning reproducer available in this repo