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

Class annotated with Introspected.Builder as Lombok builder failing to compile #11287

Closed
radovanradic opened this issue Oct 29, 2024 · 0 comments · Fixed by #11291
Closed

Class annotated with Introspected.Builder as Lombok builder failing to compile #11287

radovanradic opened this issue Oct 29, 2024 · 0 comments · Fixed by #11291
Assignees

Comments

@radovanradic
Copy link
Contributor

Expected Behavior

Class

package com.example;

import io.micronaut.core.annotation.Introspected;
import io.micronaut.serde.annotation.Serdeable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder(builderClassName = "Builder")
@Serdeable
@NoArgsConstructor
@AllArgsConstructor
@Introspected(builder = @Introspected.IntrospectionBuilder(builderClass = RobotCpuData.Builder.class))
public final class RobotCpuData {
    private String id;

    private String manufacturer;
}

can be compiled

Actual Behaviour

Compilation fails with the error

RobotCpuData.java:16: error: Builder class not found on compilation classpath: <error>
public final class RobotCpuData {
             ^

Steps To Reproduce

Just add class above to the project and try to compile.

Environment Information

Any

Example Application

No response

Version

4.6.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants