class cast exception in ff 17

41 views
Skip to first unread message

Stephen Haberman

unread,
Oct 3, 2014, 2:53:05 PM10/3/14
to google-web-toolkit-contributors
Hey,

I know FF17 is pretty old, but do we care about breakages in it? We
noticed some client-side ClassCastExceptions in our logs that are
from a user on FF17. The app works fine in FF latest.

The exception is odd, because, according to the de-obfuscated stack
trace, given a class hierarchy like:

class Base
class Foo extends Base
class Bar extends Base

We are in "new Foo()", from the Foo cstr we call the Base cstr, which
calls Base.someMethod(). Base.someMethod() calls Base.anotherMethod().

Now the bizarre thing is that we end up in *Bar*.anotherMethod(), and
get a class cast exception.

E.g. somehow we jumped subclasses, and went from executing code in
Foo/Foo's base class to code that is in Bar.

Which seems really odd. Which is why I mention it. If we don't care,
that's fine, but it made me scratch my head for awhile.

(Our production build is using a GWT snapshot from ~April, but I also
reproduced it in our app with a GWT snapshot build from ~last week.)

- Stephen

Roberto Lublinerman

unread,
Oct 3, 2014, 2:58:37 PM10/3/14
to google-web-tool...@googlegroups.com
Can you isolate the bug and open an issue for it? If you upload a repro case I'll take a look.


- Stephen

--
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/20141003135259.76c16354%40sh9.
For more options, visit https://groups.google.com/d/optout.

Goktug Gokdogan

unread,
Oct 3, 2014, 3:04:01 PM10/3/14
to google-web-toolkit-contributors
It might be related to the bug[1] that mdempsky@ filed to Firefox earlier. The Firefox's VM was causing an incorrect polymorphic dispatch sometimes.

On Fri, Oct 3, 2014 at 11:52 AM, Stephen Haberman <stephen....@gmail.com> wrote:

- Stephen

Jens

unread,
Oct 3, 2014, 3:07:20 PM10/3/14
to google-web-tool...@googlegroups.com
I have also seen this behavior once in our app. If I remember correctly the generated JavaScript looked correct, yet FireFox called the wrong method. 

IMHO it is a JIT bug in older Firefox versions.

-- J.

Stephen Haberman

unread,
Oct 3, 2014, 3:17:19 PM10/3/14
to 'Goktug Gokdogan' via GWT Contributors

> It might be related to the bug[1] that mdempsky@ filed to Firefox
> earlier. The Firefox's VM was causing an incorrect polymorphic
> dispatch sometimes.
>
> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=872796

Ah, nice!

Thanks (Jens too) for saving me the trouble of trying to reproduce
that. I was really not looking forward to it. :-)

- Stephen

Reply all
Reply to author
Forward
0 new messages