Tuesday, March 6, 2012

Re: Sporadic errors during compilation, Checking type argument 0 of type 'java.util.Arrays.ArrayList, no default constructor.

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.

--
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/-/T11r-bii6psJ.
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