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

A service broken error despite annotation processor generating it if directives listed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • 21
    • tools
    • None
    • b26

      Consider module-info like:

          module m {
              provides test.Service with test.Provider;
          }

      And assume test.Provider does not exist in the sources, but is generated by an annotation processor. This works, unless the AP lists the directives from the module, in which case it fails:

      testGenerateServiceImplementation/src/module-info.java:3: error: the service implementation does not have a default constructor: Provider
          provides test.Service with test.Provider;
                                         ^

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: