Monday, April 13, 2015

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

What exactly is not working?
What is the obj in this case? What is the expected result?

On Sat, Apr 11, 2015 at 5:15 AM, 田传武 <i@goodow.com> wrote:
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 :)

--
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+unsubscribe@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.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment