title: Service interface provided but not exported or used warning in module-info class
body: <blockquote>
  <pre><code>Java9 - jdk-9+181
  intelliJ - 2017.2.2 built on August 9,2017
  </code></pre>
  </blockquote>
  
  <p>The <a href="http://download.java.net/java/jdk9/docs/api/java.management.rmi-summary.html" rel="noreferrer"><code>java.management.rmi</code></a>'s <code>module-info.java</code> implementation is somewhat like:</p>
  
  <pre><code>module java.management.rmi {
      ...
      requires transitive java.management;
  
      exports com.sun.jmx.remote.protocol.rmi to java.management;
  
      provides javax.management.remote.JMXConnectorProvider with
          com.sun.jmx.remote.protocol.rmi.ClientProvider;
      provides javax.management.remote.JMXConnectorServerProvider with
          com.sun.jmx.remote.protocol.rmi.ServerProvider;
  }
  </code></pre>
  
  <p>For both the <code>provides</code> statement I got to see a compiler warning stating </p>
  
  <blockquote>
    <p>Service interface provided but not exported or used</p>
  </blockquote>
  
  <p>I ended up guessing wrong when I tried using these in another module as:</p>
  
  <pre><code>module interactor {
      requires java.management.rmi;
      uses javax.management.remote.JMXConnectorProvider;
  }
  </code></pre>
  
  <p>The warning still remains. </p>
  
  <p>Furthermore, I could also reach <a href="http://download.java.net/java/jdk9/docs/api/java.management-summary.html" rel="noreferrer"><code>java.management</code></a>'s module to find </p>
  
  <pre><code>uses javax.management.remote.JMXConnectorProvider;
  uses javax.management.remote.JMXConnectorServerProvider;
  </code></pre>
  
  <p>What's the reason for this warning still and how could this be solved?</p>
  
  <p>Attaching screenshot as per the ask in comments:</p>
  
  <p><a href="https://i.stack.imgur.com/QTKeB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QTKeB.png" alt="enter image description here"></a></p>