Skip to content

Lda/fix abstract class builder - #139

Draft
0-ace-l0 wants to merge 5 commits into
devfrom
lda/fix-abstract-class-builder
Draft

0-ace-l0 wants to merge 5 commits into
devfrom
lda/fix-abstract-class-builder

Conversation

@0-ace-l0

@0-ace-l0 0-ace-l0 commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Fix builder generation for abstract classes: Issue #119

Description:
This PR fixes an issue where the class-diagram generator creates a concrete build() method for abstract classes, preventing potential compiler errors.

  • Solution: Added an if check in BuilderDecorator.visit(ASTCDClass node) to check if a class is abstract, ensuring that the generation of the build() method is properly omitted or handled for abstract classes.

  • Testing: Added a test case in BuilderDecoratorTest featuring an abstract class model to verify that builders for abstract classes are generated correctly without build() and that the build passes without errors.

@0-ace-l0
0-ace-l0 requested a review from MaxStachon September 28, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant