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

Fix list value cannot be de-serialized #421

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

Karlatemp
Copy link
Contributor

After 621e791, deserialize hocon config list value will got wrong thing.

As example, deserializing following config

subnode = [
  114, 514
]

will got wrong response:

var node = HoconConfiguationLoader.builder().file(....).load();
var subnode = node.node("subnode");

System.out.println(subnode.isMap()); // true
System.out.println(subnode.raw()); // {1=514}

@jpenilla
Copy link
Contributor

jpenilla commented Nov 9, 2023

Tested to fix #411

@zml2008 zml2008 self-assigned this Nov 11, 2023
@zml2008 zml2008 added this to the 4.2.0 milestone Nov 11, 2023
@zml2008 zml2008 added this pull request to the merge queue Nov 11, 2023
Merged via the queue into SpongePowered:master with commit 06c4e3c Nov 11, 2023
2 checks passed
@zml2008 zml2008 linked an issue Nov 11, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible issue when getting an empty array of a specific type
3 participants