alibaba / alibaba/p3c

规约插件扫描报错

Open
#896 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
30.8k
Forks
8k
PR merge metrics
No merged PRs in 30d

Description

An internal error occurred during: "P3C Code Analysis".
javax/annotation/Generated

扫描UserListDTO会出现这个问题
```
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "UserListDTO", description = "用户表")
public class UserListDTO extends BaseDTO implements Serializable {

private static final long serialVersionUID = 1L;
private String id;
}
```
```
@Data
public class BaseDTO {

@ApiModelProperty("页")
private Integer pageNum;

@ApiModelProperty("大小")
private Integer pageSize;

@ApiModelProperty("开始时间")
private LocalDateTime startTime;

@ApiModelProperty("结束时间")
private LocalDateTime endTime;

@ApiModelProperty("搜索字")
private String searchStr;

}
```

**ide:sts4**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the P3C Code Analysis failure in STS4 with the UserListDTO and BaseDTO examples, using the reported javax/annotation/Generated error as the symptom. Trace the scanning path involved in these DTOs; done means scanning UserListDTO completes without the internal error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.