You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors in jsinterop/base/ArrayLike.java
[ERROR] Line 21: JsOverlay method 'Object JsArray.getAt(int)' cannot be non-final nor native.
[ERROR] Line 26: JsOverlay method 'void JsArray.setAt(int, Object)' cannot be non-final nor native.
Note that also the error refers to JsArray.get listed under ArrayLike.
The text was updated successfully, but these errors were encountered:
You missed an important piece of info out. JsArray is also native. The issue here does not have to do with traditional bridges but with the implementation strategy of default methods.
There is an assertion in JsInteropRestrictionChecker but the test might not be running with -ea.
Native classes implementing interfaces with overlays triggerred a compiler
error due to the fact that overlays in native intefaces are "default"
methods and that the strategy of implementing them consists in creating
the corresponding synthetic override in classes that don't explicitly
implement the method.
Bug: #9440
Bug-Link: gwtproject/gwt#9440
Change-Id: I30a100c4d83f13df61fed57a54afb3b25a153250
Repro:
Errors in jsinterop/base/ArrayLike.java
[ERROR] Line 21: JsOverlay method 'Object JsArray.getAt(int)' cannot be non-final nor native.
[ERROR] Line 26: JsOverlay method 'void JsArray.setAt(int, Object)' cannot be non-final nor native.
Note that also the error refers to JsArray.get listed under ArrayLike.
The text was updated successfully, but these errors were encountered: