Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
steosoft opened this issue Jun 21, 2018 · 3 comments

Comments

@steosoft
Copy link

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.
@zak905
Copy link
Member

zak905 commented Jun 21, 2018

What GWT version are you using?

@steosoft
Copy link
Author

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

@zak905
Copy link
Member

zak905 commented Jun 22, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants