gwty-leaflet
gwty-leaflet copied to clipboard
Native methods require a JavaScript implementation enclosed with /*-{ and }-*/
I wanted to use your library in my project where I use GWT and SmartGWT. But when I add map creation in my code I get compile errors as below. Could you tell what the problem is?
[INFO] [ERROR] Errors in 'com/gwidgets/api/leaflet/L.java'
[INFO] [ERROR] Line 76: Native methods require a JavaScript implementation enclosed with /*-{ and }-*/
[INFO] [ERROR] Line 85: Native methods require a JavaScript implementation enclosed with /*-{ and }-*/
[.........]
[INFO] [ERROR] Errors in 'com/gwidgets/api/leaflet/LatLng.java'
[INFO] [ERROR] Line 65: Native methods require a JavaScript implementation enclosed with /*-{ and }-*/
[........]
etc.
What GWT version are you using?
<properties>
<!-- Convenience property to set the GWT version -->
<gwtVersion>2.8.2</gwtVersion>
[....]
</properties>
<dependencies>
[....]
<dependency>
<groupId>com.isomorphic.smartgwt.lgpl</groupId>
<artifactId>smartgwt-lgpl</artifactId>
<version>6.1-p20170914</version>
</dependency>
<dependency>
<groupId>com.isomorphic.smartgwt.lgpl</groupId>
<artifactId>smartgwt-skins</artifactId>
<version>6.1-p20170914</version>
</dependency>
[....]
<dependencies>
I am guessing Smart GWT is not compatible with the latest versions of GWT 2.8.x and thus JsInterop. I have not tried though, maybe their support can confirm this to you.