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

Javac doesn't report errors on duplicate provides with different service implementations

    Details

    • Subcomponent:
    • Resolved In Build:
      b156
    • Verification:
      Verified

      Backports

        Description

        The spec says:

        "It is a compile-time error if more than one provides statement in a module declaration specifies the same service interface. "

        If the service implementations of these provides statements are different then compiler does not produce an error.

        module m {
            provides I with A;
            provides I with B;
        }

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jjg Jonathan Gibbons
                  Reporter:
                  vrudomet Victor Rudometov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: