private void readObject(ObjectInputStream stream)
GenericEnumUserType directly, as SerializationProxy
should have been written in its place.private Object writeReplace()
GenericEnumUserType (which is not really serializable due to the Method fields)
with a simple SerializationProxy containing the names for the enum class, the identifier method and
the valueOf method.Copyright © 2014 Atlassian. All rights reserved.