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

Cannot obtain the parent interface of multiple inheritance. #480

Closed
younker99 opened this issue Apr 17, 2023 · 1 comment
Closed

Cannot obtain the parent interface of multiple inheritance. #480

younker99 opened this issue Apr 17, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@younker99
Copy link
Contributor

younker99 commented Apr 17, 2023

Your Environment(您的使用环境)

  • smart-doc version: 2.6.7
  • plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin): 未使用
  • build tool version(maven or gradle): maven 3.6.3

Expected Behavior(您期望的结果)

class A;
class B extends A;
class C extends B;

When generating documentation for C, it is expected to generate interface information from A and B.
对C生成文档时,期望生成A与B中的接口信息。

Current Behavior(当前结果)

Only methods from B will be retrieved; those from A will not be loaded.
只会获取B中的method,不会加载A中的。

Possible Solution(bug解决建议)

In the IRestDocTemplate, on line 1049, in the getParenClassMethods method, it is expected to use recursion to obtain the parent class information of the class, rather than just loading the immediate parent of the current class.

IRestDocTemplate中,1049行,getParenClassMethods方法,期望采用递归获取class的父类信息,而不是只加载当前class的父。

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

Context(Bug影响描述)

Document generation is abnormal when there is multiple inheritance.

多层继承时文档生成异常

@younker99 younker99 added the bug Something isn't working label Apr 17, 2023
@shalousun
Copy link
Collaborator

good

@shalousun shalousun added this to the 2.6.8 milestone Apr 20, 2023
@shalousun shalousun changed the title 无法获取多层继承的父类接口 Cannot obtain the parent interface of multiple inheritance. Jun 28, 2024
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