Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8322641

javac fails with "Unable to implement <class> method".

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 21.0.2, 22, 23
    • tools
    • b07
    • generic
    • generic

      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.

            cushon Liam Miller-Cushon
            fniephaus Fabio Niephaus
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: