KeyValuePair value type
Bug #778503 reported by
Prageeth Silva
This bug report is a duplicate of:
Bug #744035: KeyValuePair needs to store a Blob not a generic Object.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MUGLE |
New
|
High
|
Unassigned |
Bug Description
Looks like GWT doesn't allow Object as a type to be returned or used as method parameters (or used as fields) in classes that go through RPC.
Therefore I was trying to implement Serializable as the value field (and also for the particular getter and setter).
I can't remember why we had a conversation about the client api returning Object instead of Serializable; the head revision contains Serializable in the KeyValueService in the client api.
For now, I'm planning to convert the KeyValuePair (Client wrapper class) to use Serializable for the value field (and the getter/setter).
Any thoughts? Am I missing something that we discussed the other day?
To post a comment you must log in.
OK, I think I came across the GWT warnings that complain about using java.io. Serializable and the only work around that worked so far is when I used com.google. gwt.user. client. rpc.IsSerializa ble instead.
However, what I don't understand is that the client API still uses java.io. Serializable but GWT doesn't complain.