1 /*
   2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27  * Defines the foundational APIs of the Java SE Platform.
  28  *
  29  * <dl>
  30  * <dt class="simpleTagLabel" style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">Providers:</dt>
  31  * <dd> The JDK implementation of this module provides an implementation of
  32  *      the {@index jrt jrt} {@linkplain java.nio.file.spi.FileSystemProvider
  33  *      file system provider} to enumerate and read the class and resource
  34  *      files in a run-time image.
  35  *      The jrt file system can be created by calling
  36  *      {@link java.nio.file.FileSystems#newFileSystem
  37  *      FileSystems.newFileSystem(URI.create("jrt:/"))}.
  38  *      </dd>
  39  * <dt class="simpleTagLabel" style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">Tool Guides:</dt>
  40  * <dd style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif"> {@extLink java_tool_reference java launcher},
  41  *      {@extLink keytool_tool_reference keytool}</dd>
  42  * </dl>
  43  *
  44  * @provides java.nio.file.spi.FileSystemProvider
  45  *
  46  * @uses java.lang.System.LoggerFinder
  47  * @uses java.net.ContentHandlerFactory
  48  * @uses java.net.spi.URLStreamHandlerProvider
  49  * @uses java.nio.channels.spi.AsynchronousChannelProvider
  50  * @uses java.nio.channels.spi.SelectorProvider
  51  * @uses java.nio.charset.spi.CharsetProvider
  52  * @uses java.nio.file.spi.FileSystemProvider
  53  * @uses java.nio.file.spi.FileTypeDetector
  54  * @uses java.security.Provider
  55  * @uses java.text.spi.BreakIteratorProvider
  56  * @uses java.text.spi.CollatorProvider
  57  * @uses java.text.spi.DateFormatProvider
  58  * @uses java.text.spi.DateFormatSymbolsProvider
  59  * @uses java.text.spi.DecimalFormatSymbolsProvider
  60  * @uses java.text.spi.NumberFormatProvider
  61  * @uses java.time.chrono.AbstractChronology
  62  * @uses java.time.chrono.Chronology
  63  * @uses java.time.zone.ZoneRulesProvider
  64  * @uses java.util.spi.CalendarDataProvider
  65  * @uses java.util.spi.CalendarNameProvider
  66  * @uses java.util.spi.CurrencyNameProvider
  67  * @uses java.util.spi.LocaleNameProvider
  68  * @uses java.util.spi.ResourceBundleControlProvider
  69  * @uses java.util.spi.ResourceBundleProvider
  70  * @uses java.util.spi.TimeZoneNameProvider
  71  * @uses java.util.spi.ToolProvider
  72  * @uses javax.security.auth.spi.LoginModule
  73  *
  74  * @moduleGraph
  75  * @since 9
  76  */
  77 module java.base {
  78 
  79     exports java.io;
  80     exports java.lang;
  81     exports java.lang.annotation;
  82     exports java.lang.constant;
  83     exports java.lang.invoke;
  84     exports java.lang.module;
  85     exports java.lang.ref;
  86     exports java.lang.reflect;
  87     exports java.math;
  88     exports java.net;
  89     exports java.net.spi;
  90     exports java.foreign;
  91     exports java.foreign.annotations;
  92     exports java.foreign.memory;
  93     exports java.foreign.layout;
  94     exports java.nio;
  95     exports java.nio.channels;
  96     exports java.nio.channels.spi;
  97     exports java.nio.charset;
  98     exports java.nio.charset.spi;
  99     exports java.nio.file;
 100     exports java.nio.file.attribute;
 101     exports java.nio.file.spi;
 102     exports java.security;
 103     exports java.security.acl;
 104     exports java.security.cert;
 105     exports java.security.interfaces;
 106     exports java.security.spec;
 107     exports java.text;
 108     exports java.text.spi;
 109     exports java.time;
 110     exports java.time.chrono;
 111     exports java.time.format;
 112     exports java.time.temporal;
 113     exports java.time.zone;
 114     exports java.util;
 115     exports java.util.concurrent;
 116     exports java.util.concurrent.atomic;
 117     exports java.util.concurrent.locks;
 118     exports java.util.function;
 119     exports java.util.jar;
 120     exports java.util.regex;
 121     exports java.util.spi;
 122     exports java.util.stream;
 123     exports java.util.zip;
 124     exports javax.crypto;
 125     exports javax.crypto.interfaces;
 126     exports javax.crypto.spec;
 127     exports javax.net;
 128     exports javax.net.ssl;
 129     exports javax.security.auth;
 130     exports javax.security.auth.callback;
 131     exports javax.security.auth.login;
 132     exports javax.security.auth.spi;
 133     exports javax.security.auth.x500;
 134     exports javax.security.cert;
 135 
 136 
 137     // additional qualified exports may be inserted at build time
 138     // see make/gensrc/GenModuleInfo.gmk
 139 
 140     exports com.sun.security.ntlm to
 141         java.security.sasl;
 142     exports jdk.internal to
 143         jdk.jfr;
 144     exports jdk.internal.access to
 145         java.desktop,
 146         java.logging,
 147         java.management,
 148         java.naming,
 149         java.rmi,
 150         jdk.jlink,
 151         jdk.net;
 152     exports jdk.internal.event to
 153         jdk.jfr;
 154     exports jdk.internal.jimage to
 155         jdk.jlink;
 156     exports jdk.internal.jimage.decompressor to
 157         jdk.jlink;
 158     exports jdk.internal.loader to
 159         java.instrument,
 160         java.logging;
 161     exports jdk.internal.jmod to
 162         jdk.compiler,
 163         jdk.jlink;
 164     exports jdk.internal.logger to
 165         java.logging;
 166     exports jdk.internal.org.objectweb.asm to
 167         jdk.jartool,
 168         jdk.jfr,
 169         jdk.jlink,
 170         jdk.scripting.nashorn,
 171         jdk.jextract;
 172     exports jdk.internal.org.objectweb.asm.tree to
 173         jdk.jfr,
 174         jdk.jlink;
 175     exports jdk.internal.org.objectweb.asm.util to
 176         jdk.jfr,
 177         jdk.scripting.nashorn;
 178     exports jdk.internal.org.objectweb.asm.commons to
 179         jdk.jfr,
 180         jdk.scripting.nashorn;
 181     exports jdk.internal.org.objectweb.asm.signature to
 182         jdk.scripting.nashorn;
 183     exports jdk.internal.org.xml.sax to
 184         jdk.jfr;
 185     exports jdk.internal.org.xml.sax.helpers to
 186         jdk.jfr;
 187     exports jdk.internal.misc to
 188         java.desktop,
 189         java.logging,
 190         java.management,
 191         java.naming,
 192         java.net.http,
 193         java.rmi,
 194         java.security.jgss,
 195         java.xml,
 196         jdk.attach,
 197         jdk.charsets,
 198         jdk.compiler,
 199         jdk.jfr,
 200         jdk.jshell,
 201         jdk.scripting.nashorn,
 202         jdk.scripting.nashorn.shell,
 203         jdk.unsupported,
 204         jdk.internal.vm.ci;
 205     exports jdk.internal.module to
 206         java.instrument,
 207         java.management.rmi,
 208         jdk.jartool,
 209         jdk.jfr,
 210         jdk.jlink;
 211     exports jdk.internal.perf to
 212         java.management,
 213         jdk.management.agent,
 214         jdk.internal.jvmstat;
 215     exports jdk.internal.ref to
 216         java.desktop;
 217     exports jdk.internal.reflect to
 218         java.logging,
 219         java.sql,
 220         java.sql.rowset,
 221         jdk.dynalink,
 222         jdk.scripting.nashorn,
 223         jdk.unsupported;
 224     exports jdk.internal.vm to
 225         jdk.internal.jvmstat,
 226         jdk.management.agent;
 227     exports jdk.internal.vm.annotation to
 228         jdk.internal.vm.ci,
 229         jdk.unsupported;
 230     exports jdk.internal.util.jar to
 231         jdk.jartool;
 232     exports jdk.internal.util.xml to
 233         jdk.jfr;
 234     exports jdk.internal.util.xml.impl to
 235         jdk.jfr;
 236     exports sun.net to
 237         java.net.http,
 238         jdk.naming.dns;
 239     exports sun.net.ext to
 240         jdk.net;
 241     exports sun.net.dns to
 242         java.security.jgss,
 243         jdk.naming.dns;
 244     exports sun.net.util to
 245         java.desktop,
 246         jdk.jconsole,
 247         java.net.http;
 248     exports sun.net.www to
 249         java.net.http,
 250         jdk.jartool;
 251     exports sun.net.www.protocol.http to
 252         java.security.jgss;
 253     exports sun.nio.ch to
 254         java.management,
 255         jdk.crypto.cryptoki,
 256         jdk.net,
 257         jdk.sctp;
 258     exports sun.nio.cs to
 259         jdk.charsets;
 260     exports sun.reflect.annotation to
 261         jdk.compiler;
 262     exports sun.reflect.generics.reflectiveObjects to
 263         java.desktop;
 264     exports sun.reflect.misc to
 265         java.desktop,
 266         java.datatransfer,
 267         java.management,
 268         java.management.rmi,
 269         java.rmi,
 270         java.sql.rowset;
 271     exports sun.security.action to
 272         java.desktop,
 273         java.security.jgss;
 274     exports sun.security.internal.interfaces to
 275         jdk.crypto.cryptoki;
 276     exports sun.security.internal.spec to
 277         jdk.crypto.cryptoki;
 278     exports sun.security.jca to
 279         java.smartcardio,
 280         jdk.crypto.ec,
 281         jdk.crypto.cryptoki,
 282         jdk.naming.dns;
 283     exports sun.security.pkcs to
 284         jdk.crypto.ec,
 285         jdk.jartool;
 286     exports sun.security.provider to
 287         java.rmi,
 288         java.security.jgss,
 289         jdk.crypto.cryptoki,
 290         jdk.security.auth;
 291     exports sun.security.provider.certpath to
 292         java.naming;
 293     exports sun.security.rsa to
 294         jdk.crypto.cryptoki;
 295     exports sun.security.timestamp to
 296         jdk.jartool;
 297     exports sun.security.tools to
 298         jdk.jartool;
 299     exports sun.security.util to
 300         java.desktop,
 301         java.naming,
 302         java.rmi,
 303         java.security.jgss,
 304         java.security.sasl,
 305         java.smartcardio,
 306         java.xml.crypto,
 307         jdk.crypto.ec,
 308         jdk.crypto.cryptoki,
 309         jdk.jartool,
 310         jdk.security.auth,
 311         jdk.security.jgss;
 312     exports sun.security.util.math to
 313         jdk.crypto.ec;
 314     exports sun.security.util.math.intpoly to
 315         jdk.crypto.ec;
 316     exports sun.security.x509 to
 317         jdk.crypto.ec,
 318         jdk.crypto.cryptoki,
 319         jdk.jartool;
 320     exports sun.security.validator to
 321         jdk.jartool;
 322     exports sun.util.cldr to
 323         jdk.jlink;
 324     exports sun.util.locale.provider to
 325         java.desktop,
 326         jdk.jlink,
 327         jdk.localedata;
 328     exports sun.util.logging to
 329         java.desktop,
 330         java.logging,
 331         java.prefs;
 332     exports sun.util.resources to
 333         jdk.localedata;
 334 
 335 
 336     // the service types defined by the APIs in this module
 337 
 338     uses java.lang.System.LoggerFinder;
 339     uses java.net.ContentHandlerFactory;
 340     uses java.net.spi.URLStreamHandlerProvider;
 341     uses java.nio.channels.spi.AsynchronousChannelProvider;
 342     uses java.nio.channels.spi.SelectorProvider;
 343     uses java.nio.charset.spi.CharsetProvider;
 344     uses java.nio.file.spi.FileSystemProvider;
 345     uses java.nio.file.spi.FileTypeDetector;
 346     uses java.security.Provider;
 347     uses java.text.spi.BreakIteratorProvider;
 348     uses java.text.spi.CollatorProvider;
 349     uses java.text.spi.DateFormatProvider;
 350     uses java.text.spi.DateFormatSymbolsProvider;
 351     uses java.text.spi.DecimalFormatSymbolsProvider;
 352     uses java.text.spi.NumberFormatProvider;
 353     uses java.time.chrono.AbstractChronology;
 354     uses java.time.chrono.Chronology;
 355     uses java.time.zone.ZoneRulesProvider;
 356     uses java.util.spi.CalendarDataProvider;
 357     uses java.util.spi.CalendarNameProvider;
 358     uses java.util.spi.CurrencyNameProvider;
 359     uses java.util.spi.LocaleNameProvider;
 360     uses java.util.spi.ResourceBundleControlProvider;
 361     uses java.util.spi.ResourceBundleProvider;
 362     uses java.util.spi.TimeZoneNameProvider;
 363     uses java.util.spi.ToolProvider;
 364     uses javax.security.auth.spi.LoginModule;
 365 
 366     // JDK-internal service types
 367 
 368     uses jdk.internal.logger.DefaultLoggerFinder;
 369     uses sun.text.spi.JavaTimeDateTimePatternProvider;
 370     uses sun.util.spi.CalendarProvider;
 371     uses sun.util.locale.provider.LocaleDataMetaInfo;
 372     uses sun.util.resources.LocaleData.CommonResourceBundleProvider;
 373     uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider;
 374 
 375     // Built-in service providers that are located via ServiceLoader
 376 
 377     provides java.nio.file.spi.FileSystemProvider with
 378         jdk.internal.jrtfs.JrtFileSystemProvider;
 379 }