gwty-leaflet icon indicating copy to clipboard operation
gwty-leaflet copied to clipboard

Native methods require a JavaScript implementation enclosed with /*-{ and }-*/

Open steosoft opened this issue 7 years ago • 3 comments

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.

steosoft avatar Jun 21 '18 10:06 steosoft

What GWT version are you using?

zak905 avatar Jun 21 '18 11:06 zak905

    <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>

steosoft avatar Jun 21 '18 11:06 steosoft

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.

zak905 avatar Jun 22 '18 14:06 zak905