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

Wrong note about multiple type/package elements being found.

    XMLWordPrintable

Details

    • b158
    • Not verified

    Backports

      Description

        From Jon, in the AnnotationProcessing, this is printed:
        Note: Multiple elements named {1} in modules {2} were found by javax.lang.model.util.Elements.getTypeElement.
        Note: Multiple elements named {1} in modules {2} were found by javax.lang.model.util.Elements.getPackageElement.
        Note: Multiple elements named {1} in modules {2} were found by javax.lang.model.util.Elements.getTypeElement.
        Note: Multiple elements named {1} in modules {2} were found by javax.lang.model.util.Elements.getPackageElement.
        Note: Multiple elements named {1} in modules {2} were found by javax.lang.model.util.Elements.getTypeElement.

        Which is apparently wrong, should be:
        Note: Multiple elements named 'impl.conflict.module.Impl' in modules 'm1x, m2x' were found by javax.lang.model.util.Elements.getTypeElement.
        Note: Multiple elements named 'impl.conflict.module' in modules 'm1x, m2x' were found by javax.lang.model.util.Elements.getPackageElement.
        Note: Multiple elements named 'impl.conflict.src.Impl' in modules 'm1x, unnamed module' were found by javax.lang.model.util.Elements.getTypeElement.
        Note: Multiple elements named 'impl.conflict.src' in modules 'm1x, unnamed module' were found by javax.lang.model.util.Elements.getPackageElement.
        Note: Multiple elements named 'impl.conflict.clazz.pkg' in modules 'm1x, m2x' were found by javax.lang.model.util.Elements.getTypeElement.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: