Using square brackets for a list of strings causes an infinite loop
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 50/100
Research direction
Start by reproducing the issue in the YAML reader with the square-bracketed List configuration, then compare its parsing path with the equivalent block-list form. Done means the inline list of strings no longer enters an infinite loop and both configurations deserialize successfully.
Written by the indexing model from the issue text.
Description
It looks like the yml reader goes into a deep loop if square brackets are found for a list of strings.
This configuration cause error:
stringList: ["test1", "test2", "test3"]
This configuration does NOT cause problems:
stringList:
- "test1"
- "test2"
- "test3"
The example does not use a custom serializer, only a simple List<String> type.
- Dominant language
- Java
- Stars
- 27
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Elytrium/java-serializer
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Kotlin features? Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
Elytrium/java-serializer#1 · 1 comment · 2 reactions ·
All issues in Elytrium/java-serializer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
checkstyle/test-configs#263 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·