You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
In #121Connection<A> has been made to extend Serializable, but (as noted in the comments) using any implementation of AbstractConnection<A> after deserialization fails with a NullPointerException
because it tries to use transient fields without restoring them.
Making the fields non-transient is difficult because of the larger number of classes that would need to be made serializable in turn; just restoring the fields on the other hand is not possible because there's a dependency on the API type and its parameters.
Currently the easiest path around the problem is to convert to a ConnectionData with createData(), but a correctly configured ConnectionFactoryLocator is then required to convert back to a Connection<A>.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In #121
Connection<A>
has been made to extendSerializable
, but (as noted in the comments) using any implementation ofAbstractConnection<A>
after deserialization fails with aNullPointerException
because it tries to use transient fields without restoring them.
Making the fields non-transient is difficult because of the larger number of classes that would need to be made serializable in turn; just restoring the fields on the other hand is not possible because there's a dependency on the API type and its parameters.
Currently the easiest path around the problem is to convert to a
ConnectionData
withcreateData()
, but a correctly configuredConnectionFactoryLocator
is then required to convert back to aConnection<A>
.The text was updated successfully, but these errors were encountered: