Sudden ClasssCastExceptions

10 views
Skip to first unread message

Pieter De Graef

unread,
Nov 24, 2011, 4:09:27 AM11/24/11
to gwtexporter
Hi,

have there been changes recently to the exporting mechanism, as all of
a sudden I'm getting ClassCastExceptions for code that worked before.
The main problem seems to lie in the fact that I have split up my
implementations from my interfaces. For example:

public interface Map implements Exportable {
// A bunch of method declarations.
}

public class MapImpl implements Map, Exportable {
// Method implementations
}

Now in other interfaces, I often refer to Map (not MapImpl). This
worked before, but now I'm getting ClassCastExceptions. I have also
tried switching to 2.4.0-M1, but that version too gives me the same
exceptions.

Anyone has any idea?

Pieter De Graef

unread,
Nov 28, 2011, 8:59:32 AM11/28/11
to gwtexporter
I've found that switching back to 2.3.1-SNAPSHOT actually fixes this.
Another option is to replace all my interfaces with abstract classes
that defines nothing but abstract methods.

Both options are not really desirable...

So I was browsing through the SVN history and I was wondering whether
or not it could have something to do with the checks for constructors?

Reply all
Reply to author
Forward
0 new messages