Skip to content

[2.10.x] make ImmutableLinkedHashMap serializable - #945

Merged
mkurz merged 1 commit into
playframework:2.10.xfrom
ramazanyich:jsobject_serializable
Nov 4, 2023
Merged

mkurz merged 1 commit into
playframework:2.10.xfrom
ramazanyich:jsobject_serializable

Conversation

@ramazanyich

@ramazanyich ramazanyich commented Oct 31, 2023 •

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • Have you read through the contributor guidelines?
  • Have you squashed your commits?
  • Have you added copyright headers to new files?
  • Have you updated the documentation?
  • Have you added tests for any changed functionality?

Fixes

Fixes #944

Purpose

In order to be able to serialize objects that contain JsObject as a member need to have internal underlying ImmutableLinkedHashMap implement serializable interface

@ramazanyich

Copy link
Copy Markdown
Contributor Author

have you an idea how I can test the serialization in scala-native.
Looks like problem is in fact that ObectInputStream/ObjectOutputStream is not included into javalibs of scala-native.
which gives a problem during test/NativeLink

@jtjeferreira

Copy link
Copy Markdown
Contributor

have you an idea how I can test the serialization in scala-native. Looks like problem is in fact that ObectInputStream/ObjectOutputStream is not included into javalibs of scala-native. which gives a problem during test/NativeLink

I think it is better to just have that test as JVM test in play-json/jvm/src/test/scala/play/api/libs/json

@ramazanyich

Copy link
Copy Markdown
Contributor Author

have you an idea how I can test the serialization in scala-native. Looks like problem is in fact that ObectInputStream/ObjectOutputStream is not included into javalibs of scala-native. which gives a problem during test/NativeLink

I think it is better to just have that test as JVM test in play-json/jvm/src/test/scala/play/api/libs/json

thanks for the tip

@jtjeferreira jtjeferreira left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but would be better if a maintainer could have a look

@ramazanyich

Copy link
Copy Markdown
Contributor Author

@mkurz can you take a look on this PR

@ramazanyich
ramazanyich force-pushed the jsobject_serializable branch from 488577b to ff052c4 Compare November 2, 2023 09:39

@mkurz mkurz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work

@mkurz
mkurz merged commit 10cd132 into playframework:2.10.x Nov 4, 2023
@mkurz

mkurz commented Nov 4, 2023

Copy link
Copy Markdown
Member

@Mergifyio backport main

@mergify

mergify Bot commented Nov 4, 2023 •

Copy link
Copy Markdown
Contributor

backport main

✅ Backports have been created

Details

mergify Bot added a commit that referenced this pull request Nov 4, 2023
[main] make ImmutableLinkedHashMap serializable (backport #945) by @ramazanyich
@ihostage ihostage changed the title make ImmutableLinkedHashMap serializable [2.10.x] make ImmutableLinkedHashMap serializable Nov 4, 2023
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.

3 participants