Skip to content

Blueprint generation fails when a void non-default method is used. #10896

@tomas-langer

Description

@tomas-langer

We can (theoretically) define any method on the blueprint that is non-default, and then add an implementation using custom methods.
This is currently not possible, as even though we get a warning the method is not valid, it is still added as an option candidate.

These methods should be warned and ignored.

Desired outcome:

[WARNING] Builder definition methods cannot have void return type (must be getters): io.helidon.builder.tests.custom.voidmethod.SomeTypeBlueprint.doSomething
[WARNING] Builder definition methods cannot have parameters (must be getters): io.helidon.builder.tests.custom.voidmethod.SomeTypeBlueprint.doSomething

Current outcome:
compilation of SomeType fails, because it has a void field.

Metadata

Metadata

Assignees

Labels

4.xVersion 4.xbugSomething isn't workingbuilderRelated to the builder support

Type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions