Opened 10 years ago

Closed 10 years ago

#451 closed defect (fixed)

EnumParameter can't be serialized with servlets.

Reported by: Kevin Milner Owned by:
Priority: major Milestone: OpenSHA 1.4
Component: sha Version:
Keywords: Cc:

Description

There is a problem with serialization of ImmutableList? that will likely never be fixed. See these threads:

http://stackoverflow.com/questions/9110677/readresolve-not-working-an-instance-of-guavas-serializedform-appears
https://code.google.com/p/guava-libraries/issues/detail?id=1554

This class is used in EnumParameter? (actually EnumConstraint?), and was throwing exceptions when deserialized by tomcat.

Change History (1)

comment:1 Changed 10 years ago by Kevin Milner

Resolution: fixed
Status: newclosed

fixed in [10514] by switching to Collections.unmodifiableList(Lists.newArrayList(values))

Note: See TracTickets for help on using tickets.