-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
21.0.2, 22, 23
When running `./gradlew compileJava` in the attached Gradle project, javac from a 21.0.2 build fails with the following output:
```
warning: [options] system modules path not set in conjunction with -source 17
error: Unable to implement Repository method: GenreRepository.delete(Object entity). Cannot query persistentEntity [Genre] on non-existent property: entity
Note: Creating bean classes for 4 type elements
1 error
1 warning
```
In a JDK 21.0.1 build, however, the project compiles just fine. The behavior of javac must have somehow changed in a backward incompatible way.
```
warning: [options] system modules path not set in conjunction with -source 17
error: Unable to implement Repository method: GenreRepository.delete(Object entity). Cannot query persistentEntity [Genre] on non-existent property: entity
Note: Creating bean classes for 4 type elements
1 error
1 warning
```
In a JDK 21.0.1 build, however, the project compiles just fine. The behavior of javac must have somehow changed in a backward incompatible way.
- relates to
-
JDK-8225377 type annotations are not visible to javac plugins across compilation boundaries
-
- Resolved
-
-
JDK-8322883 [BACKOUT] 8225377: type annotations are not visible to javac plugins across compilation boundaries
-
- Closed
-