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

Deal with inner case classes #122

Open
johnynek opened this issue Aug 17, 2013 · 3 comments
Open

Deal with inner case classes #122

johnynek opened this issue Aug 17, 2013 · 3 comments

Comments

@johnynek
Copy link
Collaborator

inner case classes seem to capture references to outer even if they are not used.

If we can find some cheap way to detect this, it would really help scalding and possibly spark.

@johnynek
Copy link
Collaborator Author

We could make a better version of the FieldsSerializer that works for case classes. These could be create at the first time the class is seen and could do that expensive check on outer being used the first time.

@clementgarnier
Copy link

Just ran into this issue – in my case it was throwing a java.util.ConcurrentModificationException, probably because something was modified in the outer class.

@johnynek
Copy link
Collaborator Author

johnynek commented Aug 2, 2017 via email

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

No branches or pull requests

2 participants