Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make TraverseEmpty[Chain] serializable #4

Merged

Conversation

ceedubs
Copy link

@ceedubs ceedubs commented Aug 16, 2018

I think that the issue here is that it was referencing an instance-level
catsDataInstancesForChain from an abstract class. By changing it to
reference Chain.catsDataInstancesForChain, it is a reference to a
static member (and therefore doesn't actually need to be serialized).

Take my explanation with a grain of salt -- like everyone else on the
planet, I don't actually understand Java serialization. But at the end
of the day it works :)

I think that the issue here is that it was referencing an instance-level
`catsDataInstancesForChain` from an abstract class. By changing it to
reference `Chain.catsDataInstancesForChain`, it is a reference to a
static member (and therefore doesn't actually need to be serialized).

Take my explanation with a grain of salt -- like everyone else on the
planet, I don't actually understand Java serialization. But at the end
of the day it works :)
@LukaJCB
Copy link
Owner

LukaJCB commented Aug 16, 2018

Wow, Java serialization is weird as hell, thanks for fixing this ❤️

@LukaJCB LukaJCB merged commit 344810e into LukaJCB:filter-classes Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants