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

ModuleElement doesn't work with generated provides classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 22
    • 21
    • tools
    • None

      From compiler-dev:

      Hello there,

      I'm adding functionality to my annotation processor to check whether a generated class is registered on a module-info.java. When I try to use `ModuleElement#getDirectives`, I get the `requires` statements, but I cannot get the `provides` statements I've written.

      Is it possible to get this to work? Or does the fact that the classes are generated totally prevent me from getting the provides statements?

      ----

      Test case added in email thread

            Unassigned Unassigned
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: