public record AnnotatedRecord(
@JsonProperty("userId")
java.util.@jakarta.validation.Valid Optional<scalac.issues.@jakarta.validation.Valid UserId> userId) {};
The code in the repo compiles fine in presence of sbt compileOrder := CompileOrder.ScalaThenJava settings. If it's removed, it is not compiling anymore (same as in 2.13.14).
Compiler version
3.3.4
Minimized code
https://github.com/msosnicki/scala-annotations-java-issue
Piece of code that contains errors:
The code in the repo compiles fine in presence of sbt compileOrder := CompileOrder.ScalaThenJava settings. If it's removed, it is not compiling anymore (same as in
2.13.14
).Output
Expectation
Code compiles