[gwt-contrib] instanceof not working when upgrade from 2.7.0-SNAPSHOT to 2.7.0 (maybe caused by JsInterop changes)

2015-04-11 Thread
Hi all, when i upgrade GWT from 2.7.0-SNAPSHOT to 2.7.0, the code below is not working: obj instanceof CollaborativeObjectImpl and obj instanceof JsonObject Here are my type declarations: @JsType interface EventTarget @JsType interface CollaborativeObject extends EventTarget @JsType interface

[gwt-contrib] An Open Source implementation of Google Drive Realtime API

2014-07-14 Thread
Hi all, I'd like to share an open-source project which implements nearly all features of the google drive realtime api. *Google Drive Realtime API* https://developers.google.com/drive/realtime/ provides Google Docs–style instant collaboration. It lets multiple people edit the same data

[gwt-contrib] Questions about @JsProperty and JsType.prototype()

2014-07-01 Thread
Hi, When i translate a pure java library to a javascript library using JsInterop, i get confused about @JsProperty and JsType.prototype(). The java code looks like this: @JsType @JsNamespace($wnd.realtime.store) public class TextInsertedEvent { /** * The index of the change. */

[gwt-contrib] Translated to null.nullField when using JsInterop @JsType

2014-06-30 Thread
Hello, The newest @JsType feature is really very fascinating, and works in most cases. The only issue i found was the wrong null.nullField javascript output. the compile command: java -cp xxx com.google.gwt.dev.Compiler -war xxx -XnoclassMetadata -XnocheckCasts -XjsInteropMode JS

Re: [gwt-contrib] Translated to null.nullField when using JsInterop @JsType

2014-06-30 Thread
); -Daniel On Mon, Jun 30, 2014 at 8:09 AM, 田传武 i...@goodow.com javascript: wrote: I'm sure this is an optimizer bug. null.nullField causes the following error at runtime: SEVERE: (TypeError) : Cannot read property 'nullField

Re: [gwt-contrib] Translated to null.nullField when using JsInterop @JsType

2014-06-30 Thread
(0); -Daniel On Mon, Jun 30, 2014 at 8:09 AM, 田传武 i...@goodow.com javascript: wrote: I'm sure this is an optimizer bug. null.nullField causes the following error at runtime: SEVERE: (TypeError) : Cannot read property 'nullField' of nullcom.google. gwt.core.client.JavaScriptException

[gwt-contrib] Re: When Migrating JsInterop from GWT-Exporter to @JsInterface, JSORestrictionsChecker throws NullPointerException

2014-06-14 Thread
using it until then. On Fri, Jun 6, 2014 at 1:24 AM, 田传武 i...@goodow.com javascript: wrote: Hello, I tried converted two projects we are currently using GWT Exporter to @JsInterface for interoperate with JS. The *first project* https://github.com/goodow/realtime-channel/commit

[gwt-contrib] When Migrating JsInterop from GWT-Exporter to @JsInterface, JSORestrictionsChecker throws NullPointerException

2014-06-06 Thread
Hello, I tried converted two projects we are currently using GWT Exporter to @JsInterface for interoperate with JS. The *first project* https://github.com/goodow/realtime-channel/commit/e809e7cf9ee81fb4f470336212abfe113550ac8d only exports three interfaces, and translated successfully. The