[+cc stalcup@]

This might be because of incremental compilation: when JsArrayListWrapper 
is in another module, that module is "precompiled", so the compiler knows 
about the type. When it's in the same module, because it's the module being 
compiled, it can be pruned (unused) and as consequence doesn't interfere 
with the JSNI checks.

The workaround would be to call a static method passing the List as 
argument, and call the size() method in that static method, in Java-land, 
outside of JSNI.

On Wednesday, November 12, 2014 1:39:55 PM UTC+1, Jan Thewes wrote:
>
> Hello guys,
>
> we're currently running in problems related to the SDM in GWT 2.7. We've 
> attached two examples.
> JsListWrapperWorking is an example project where everything is working 
> fine. It is CODE IDENTICAL to JsListWrapperNotWorking.
> In the latter one we've moved the source for the two classes 
> JsArrayListWrapper and JsArrayWrapper to another module.
> No source code has been touched.
>
> When starting SDM for JsListWrapperWorking everything is working fine.
> When starting SDM for JsListWrapperNotWorking we get following exception:
>
> [ERROR] Errors in 
> 'file:~/JsListWrapperNotWorking/src/de/gad/list/client/JsListWrapperNotWorking.java'
>
> [ERROR] Line 19: Referencing interface method 'java.util.List.size()': 
> implemented by 'de.gad.list.client.myListImpl.JsArrayListWrapper'; 
> references to instance methods in overlay types are illegal; use a stronger 
> type or a Java trampoline method
>
>
> If you need any further information I'll provide them as soon as possible!
>
>
> Cheers,
>
> Jan
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/fbf7c9f5-003b-427d-96ad-c2ab0c485af1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to