Wednesday, October 3, 2012

Re: GWT WebApp and iOS 6 Safari

Hmm couldn't see why there should be a ClassCastException. As a side note, your equals() method is not correct, email/code can be null and two instances containing the same null variables are currently unequal (your if forbids null values). You should also overwrite hashcode() because you have overwritten equals().

Back to your problem: 

Have you tried to compile the app in PRETTY mode and then use Safari's remote debugging to see whats going on in Javascript? Maybe the compiler has generated webkit JS code that does not work as intended in Safari 6 on IOS 6. Do you have the same error when using Safari 6 on Mac OS? Although its not really the same situation but in http://code.google.com/p/google-web-toolkit/issues/detail?id=7392 I had a similar problem with a ClassCastException that should not occur. But would it be the situation as in the issue it should not work on Safari in general I think. But as a wild guess: Does your code work on IOS when you introduce a no-arg constructor to your place that is calling this(null, null) and setter methods you can call in your Tokenizer when using the no-arg constructor to create the place?

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9CaT93SDB_gJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment