alibaba / alibaba/fastjson2

[QUESTION]

Open
#1,050 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 请描述您的问题
*询问有关本项目的使用和其他方面的相关问题。*
![image](https://user-images.githubusercontent.com/37237649/210512689-94c8c7b2-0f6e-44b1-baf6-a7b7f405784f.png)
JSONArray 使用 stream 的时候会出现类型不确认的问题,怀疑是类型擦除,但是也不确定
![image](https://user-images.githubusercontent.com/37237649/210512798-0e1e88d9-5752-4cfe-b23d-6692d9dd6bed.png)
暂时发现的解决方法是
![image](https://user-images.githubusercontent.com/37237649/210513010-f079b3e1-36ab-4126-8111-b41bd08ad83f.png)

Contributor guide

Open the contributing guide

Research direction

Review the two screenshots and the reported JSONArray stream type-inference behavior, including the workaround shown in the issue. Reproduce the case before deciding whether the result is a bug or an expected consequence of type erasure; done would be a confirmed cause and a documented or tested resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.