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

Gizmo2: add convenient default methods to ClassOutput #221

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Mar 11, 2025

  • these methods accept FQCN instead of ClassDesc

- these methods accept FQCN instead of ClassDesc
@mkouba mkouba added the 2.x Issue applies to 2.x branch label Mar 11, 2025
@mkouba mkouba requested a review from dmlloyd March 11, 2025 08:41
Copy link
Member

@dmlloyd dmlloyd left a comment

Choose a reason for hiding this comment

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

Looks like you found a spot where I messed up the docs. 🤦🏻‍♂️

LGTM otherwise.

@dmlloyd dmlloyd merged commit 959f3b8 into quarkusio:2.x Mar 11, 2025
2 checks passed
* @param builder the
* @return the descriptor
*/
default ClassDesc class_(String name, Consumer<ClassCreator> builder) {
Copy link
Member

Choose a reason for hiding this comment

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

Sorry for asking out of the blue, but I was wondering if we should go with things like createClass instead of class_? Now maybe this is coming from the Class File API but it's not very pretty?

Note that this might be a completely stupid question as I haven't looked at the API in depth but I think it's probably now or never to ask this question.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not stupid at all. We should think about a good strategy because it's not only class that is reserved and cannot be used "as is". I have to admit that I like the concise underscore suffix strategy but I agree that it does not feel very "Java"-like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issue applies to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants