Skip to content

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented Aug 8, 2025

No description provided.

The number of flags is more than 8, so `byte` is _not_ big enough.
It is also less than 16, so `short` is big enough.

This commit also improves the error messages related to adding/removing
flags and access levels.
@Ladicek Ladicek added this to the 2.0.0.Beta5 milestone Aug 8, 2025
@Ladicek Ladicek added the 2.x Issue applies to Gizmo 2.x label Aug 8, 2025
@Ladicek Ladicek force-pushed the add-automated-testing-of-documentation-examples branch from a580e87 to 3c7104c Compare August 8, 2025 15:59
@gsmet
Copy link
Member

gsmet commented Aug 8, 2025

This is extremely cool!

@Ladicek
Copy link
Contributor Author

Ladicek commented Aug 9, 2025

The possibility occurred to me when David started (in later chapters) generating classes with the classic main method that reads the provided arguments and writes to stdout. It felt like there's gotta be a way to automatically compile and run the examples and then run the generated classes :-)

@Ladicek Ladicek force-pushed the add-automated-testing-of-documentation-examples branch from 3c7104c to e1a93a8 Compare August 9, 2025 09:36
@Ladicek Ladicek moved this to In Progress in WG - Gizmo 2 Aug 9, 2025
@gsmet
Copy link
Member

gsmet commented Aug 9, 2025

Yeah, in Hibernate Validator, we use proper classes for examples and we include the code in the doc.

It's nice because you can have more test infrastructure around. But it's not ideal as you don't have the source handy when you edit the doc files.

The approach you took is perfect for Gizmo's case.

This commit also fixes several bugs found in the examples.
@Ladicek Ladicek force-pushed the add-automated-testing-of-documentation-examples branch from e1a93a8 to 6b44c21 Compare August 9, 2025 09:51
@Ladicek Ladicek merged commit ebe6c8c into quarkusio:main Aug 9, 2025
1 check passed
@Ladicek Ladicek deleted the add-automated-testing-of-documentation-examples branch August 9, 2025 09:52
@github-project-automation github-project-automation bot moved this from In Progress to Done in WG - Gizmo 2 Aug 9, 2025
@dmlloyd
Copy link
Member

dmlloyd commented Aug 25, 2025

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issue applies to Gizmo 2.x
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants