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

55 views
Skip to first unread message

田传武

unread,
Apr 11, 2015, 8:15:01 AM4/11/15
to google-web-tool...@googlegroups.com, google-we...@googlegroups.com
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 CollaborativeString extends CollaborativeObject
abstract class CollaborativeObjectImpl implements CollaborativeObject
class CollaborativeStringImpl extends CollaborativeObjectImpl implements CollaborativeString

class JsJsonValue extends JavaScriptObject
interface JsonElement extends java.io.Serializable
interface JsonObject extends JsonElement
class JsJsonElement extends JsJsonValue implements JsonElement
final class JsJsonObject extends JsJsonElement implements JsonObject

the full source code is hosted at github:

Thanks for help :)

Goktug Gokdogan

unread,
Apr 13, 2015, 1:38:14 PM4/13/15
to google-web-toolkit-contributors, google-web-toolkit
What exactly is not working?
What is the obj in this case? What is the expected result?

--
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-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/1b763bef-1a2f-4ed0-8668-3c77151acba2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages