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

Fix for IllegalArgumentException in diagram synthesis #1932

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

petervdonovan
Copy link
Collaborator

@petervdonovan petervdonovan commented Aug 4, 2023

This is a runtime type error -- this is my bad, as such things should not happen in well written Java code. This commit modifies FormattingUtil.render to make it slightly more type-safe. It also changes the diagram synthesis to bypass the regular formatting logic -- the formatting logic seems more heavyweight than necessary since in diagrams we should not usually have to worry about how to represent comments and where to break lines (comment representation is the reason why the target was needed by the FormattingUtil.render function).

Fixes #1930.

This is a runtime type error -- this is my bad, as such things should not
happen in well written Java code. This commit modifies FormattingUtil
to make it slightly more type-safe. It also changes the diagram
synthesis to bypass the regular formatting logic -- the formatting logic
seems more heavyweight than necessary since in diagrams we should not
usually have to worry about how to represent comments and where to break
lines (comment representation is the reason why the target was needed by
the FormattingUtil.render function).
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lhstrh lhstrh added this pull request to the merge queue Aug 4, 2023
Merged via the queue into master with commit bcba4c7 Aug 4, 2023
@lhstrh lhstrh deleted the fix-exception-in-diagrams branch August 4, 2023 23:18
@cmnrd
Copy link
Collaborator

cmnrd commented Aug 7, 2023

Thank you Peter!

@petervdonovan petervdonovan changed the title Fix IllegalArgumentException in diagram synthesis Fix for IllegalArgumentException in diagram synthesis Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagram Synthesis fails wih IllegalArgumentException when enabling "Reactor State Variables"
3 participants