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
@dragos said:
It is enough to extend java.io.Serializable, no need for the annotation in that case.
Your error might be because the enclosing class it not Serializable? Can you provide the complete source code for your tests?
I don't think it makes sense to make outer pointers transient, since there is no way to set them afterwards. Your only option is to have the outer class serializable, or use a custom serialization protocol (which is in most cases the best idea by far).
How do I create a serializable anonymous class? [[BR]]
The following code:
produces a warning and still throws an
at runtime.
It would be best if Scala compiler would've understood the java.io.Serializable signature and respected it...
That might also mean making pointers to the parent environment transient!
The text was updated successfully, but these errors were encountered: