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

enum value should be serializable and should also keep referential integrity #423

Closed
JurajBurian opened this issue Jun 30, 2015 · 1 comment
Assignees

Comments

@JurajBurian
Copy link

// let say that "enum" WeekDay with value Mon is defined
// then this test should be ok:
  val out = new ByteArrayOutputStream()
  new ObjectOutputStream(out).writeObject(Mon);
  out.close();
  val monday = new ObjectInputStream(new ByteArrayInputStream(out.toByteArray)).readObject()
  assert(monday == Mon)
@joroKr21
Copy link
Collaborator

See #1271 for an example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants