I was going through the API docs for jdk.accessibility
and noticed that it lists all these separately.
The modules with scope
requires
in one module are all consuming module's Indirect Requires?The
module-info.java
for the module is as follows:module jdk.accessibility { requires transitive java.desktop; exports com.sun.java.accessibility.util; }
and for
java.desktop
is something like(trying to include varying -module java.desktop { ... requires java.prefs; ... requires transitive java.xml; exports java.applet; ... exports sun.awt to javafx.swing, jdk.accessibility, oracle.desktop; opens javax.swing.plaf.basic to jdk.jconsole; ... uses javax.sound.sampled.spi.MixerProvider; ... provides javax.sound.sampled.spi.MixerProvider with com.sun.media.sound.DirectAudioDeviceProvider, com.sun.media.sound.PortMixerProvider;
But then the doc for
jdk.accessibility
does not mentionsun.awt
as either Requires or Indirect Requires or Indirect Exports. What's the reason of inconsistency here?
Looking for examples of the difference between these that can help understand what is happening in (2) and what shall be followed as a practice for us to adapt to module structure using Java9.