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

接口返回对象中引用其他对象无法解析 #498

Closed
Thingfxj opened this issue May 9, 2023 · 2 comments
Closed

接口返回对象中引用其他对象无法解析 #498

Thingfxj opened this issue May 9, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@Thingfxj
Copy link

Thingfxj commented May 9, 2023

Your Environment(您的使用环境)

window11
idea 2021.3.2
jdk17 springboot3.0.6

  • smart-doc version:2.6.8
  • plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin): smart-doc-gradle-plugin
  • build tool version(maven or gradle):gradle

Expected Behavior(您期望的结果)

期望正常获取到A类和B类的属性信息

Current Behavior(当前结果)

Possible Solution(bug解决建议)

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)

  1. A
    public class A{
    private String name;
    }

  2. B
    public class B{
    private String id;
    private Set a;
    }

  3. 接口返回B

  4. 生成文档时 Set报错,无法识别 B相关的属性,返回{}

Context(Bug影响描述)

@Thingfxj Thingfxj added the bug Something isn't working label May 9, 2023
@shalousun
Copy link
Collaborator

先不要在字段名中用permits,这个Java的关键字,qdox目前限制有bug

@shalousun shalousun added this to the 2.6.9 milestone May 14, 2023
@shalousun
Copy link
Collaborator

fix in 2.6.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants