-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Defining nested object messes up an import in GeneratedValidatorComponent.java import repro.Repro/Top; which looks like a bug to me.
public class Repro {
@Valid
public static class Top {
@NotNull
public Nested nested;
public static record Nested(String prop) {
}
}
public static void main(String[] args) {
Validator.instance().validate(new Top());
}
}If I move Nested one level up, it works normally:
public class Repro {
@Valid
public static class Top {
@NotNull
public Nested nested;
}
public static record Nested(String prop) {
}
public static void main(String[] args) {
Validator.instance().validate(new Top());
}
}SentryMan
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working