Unfortunately even this is not the solution!
I confirm that the behavior of the gwt compiler seems to be rather random.
Currently I only note that making a gwt compile only after a complete maven
clean, it seems that it fixes the problem.
Anyone has the same problem?
Marcello De Marco
Il giorno martedì 19 marzo 2013 23:55:29 UTC+1, MarDeMar ha scritto:
>
> ERRATA CORRIGE
>
> The solution for me is more trivial than it seemed.
> I had this error using bean with a list property not initialized.
> For example:
>
> public class Order implements Serializable {
> private List<Item> items;
> ...
> }
>
> Simply initializing the list property the error disappears:
>
> public class Order implements Serializable {
> private List<Item> items = *new ArrayList<Item>()*;
> ...
> }
>
> For you I believe the problem is that you initialize the property always
> with a generic and this maybe causes confusion for the generator.
>
> Regards
> Marcello De Marco
>
>
>
> Il giorno martedì 6 marzo 2012 14:42:30 UTC+1, Dan ha scritto:
>>
>> Sorry for the delay in thanking you for your reply. I understand that
>> Objects cannot be serialized, which is why I can't understand the error
>> message.
>>
>> Some more information:
>>
>> DeviceConfiguration is has a generic type, T, which extends
>> DeviceProperty which is an interface. The definition of the field
>> 'properties' is as follows:
>>
>> private Map<T, Serializable> properties = new HashMap<T,
>> Serializable>();
>>
>> So how does the compiler *sometimes* get from HashMap<T, Serializable> to
>> TreeMap<K,V> -> Serializable -> Object?
>>
>> Thanks again,
>> Dan.
>>
>> On Monday, 27 February 2012 13:59:02 UTC, Thomas Broyer wrote:
>>>
>>>
>>>
>>> On Sunday, February 26, 2012 2:22:47 AM UTC+1, Dan wrote:
>>>>
>>>>
>>>> [WARN] Checking all subtypes of Object which qualify for serialization
>>>>
>>>>
>>> This is your problem.
>>>
>>> See
>>> http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
>>>
>>>
>>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.