1 /*
   2  * Copyright (c) 2014, 2019, 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  * </dl>
  40  *
  41  * @toolGuide java java launcher
  42  * @toolGuide keytool
  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.lang.runtime;
  88     exports java.math;
  89     exports java.net;
  90     exports java.net.spi;
  91     exports java.nio;
  92     exports java.nio.channels;
  93     exports java.nio.channels.spi;
  94     exports java.nio.charset;
  95     exports java.nio.charset.spi;
  96     exports java.nio.file;
  97     exports java.nio.file.attribute;
  98     exports java.nio.file.spi;
  99     exports java.security;
 100     exports java.security.cert;
 101     exports java.security.interfaces;
 102     exports java.security.spec;
 103     exports java.text;
 104     exports java.text.spi;
 105     exports java.time;
 106     exports java.time.chrono;
 107     exports java.time.format;
 108     exports java.time.temporal;
 109     exports java.time.zone;
 110     exports java.util;
 111     exports java.util.concurrent;
 112     exports java.util.concurrent.atomic;
 113     exports java.util.concurrent.locks;
 114     exports java.util.function;
 115     exports java.util.jar;
 116     exports java.util.regex;
 117     exports java.util.spi;
 118     exports java.util.stream;
 119     exports java.util.zip;
 120     exports javax.crypto;
 121     exports javax.crypto.interfaces;
 122     exports javax.crypto.spec;
 123     exports javax.net;
 124     exports javax.net.ssl;
 125     exports javax.security.auth;
 126     exports javax.security.auth.callback;
 127     exports javax.security.auth.login;
 128     exports javax.security.auth.spi;
 129     exports javax.security.auth.x500;
 130     exports javax.security.cert;
 131 
 132 
 133     // additional qualified exports may be inserted at build time
 134     // see make/gensrc/GenModuleInfo.gmk
 135 
 136     exports sun.invoke.util to
 137         jdk.compiler,
 138         jdk.incubator.foreign;
 139     exports com.sun.security.ntlm to
 140         java.security.sasl;
 141     exports jdk.internal to
 142         java.compiler,
 143         jdk.jfr,
 144         jdk.compiler;
 145     exports jdk.internal.access to
 146         java.desktop,
 147         java.logging,
 148         java.management,
 149         java.naming,
 150         java.rmi,
 151         jdk.jlink,
 152         jdk.net,
 153         jdk.incubator.foreign;
 154     exports jdk.internal.access.foreign to
 155         jdk.incubator.foreign;
 156     exports jdk.internal.event to
 157         jdk.jfr;
 158     exports jdk.internal.jimage to
 159         jdk.jlink;
 160     exports jdk.internal.jimage.decompressor to
 161         jdk.jlink;
 162     exports jdk.internal.loader to
 163         java.instrument,
 164         java.logging;
 165     exports jdk.internal.jmod to
 166         jdk.compiler,
 167         jdk.jlink;
 168     exports jdk.internal.logger to
 169         java.logging;
 170     exports jdk.internal.org.objectweb.asm to
 171         jdk.jartool,
 172         jdk.jfr,
 173         jdk.jlink,
 174         jdk.scripting.nashorn;
 175     exports jdk.internal.org.objectweb.asm.tree to
 176         jdk.jfr,
 177         jdk.jlink;
 178     exports jdk.internal.org.objectweb.asm.util to
 179         jdk.jfr,
 180         jdk.scripting.nashorn;
 181     exports jdk.internal.org.objectweb.asm.commons to
 182         jdk.jfr,
 183         jdk.scripting.nashorn;
 184     exports jdk.internal.org.objectweb.asm.signature to
 185         jdk.scripting.nashorn;
 186     exports jdk.internal.org.xml.sax to
 187         jdk.jfr;
 188     exports jdk.internal.org.xml.sax.helpers to
 189         jdk.jfr;
 190     exports jdk.internal.misc to
 191         java.desktop,
 192         java.logging,
 193         java.management,
 194         java.naming,
 195         java.net.http,
 196         java.rmi,
 197         java.security.jgss,
 198         java.xml,
 199         jdk.attach,
 200         jdk.charsets,
 201         jdk.compiler,
 202         jdk.jfr,
 203         jdk.jshell,
 204         jdk.nio.mapmode,
 205         jdk.scripting.nashorn,
 206         jdk.scripting.nashorn.shell,
 207         jdk.unsupported,
 208         jdk.internal.vm.ci,
 209         jdk.incubator.foreign;
 210     exports jdk.internal.module to
 211         java.instrument,
 212         java.management.rmi,
 213         jdk.jartool,
 214         jdk.jfr,
 215         jdk.jlink;
 216     exports jdk.internal.perf to
 217         java.management,
 218         jdk.management.agent,
 219         jdk.internal.jvmstat;
 220     exports jdk.internal.ref to
 221         java.desktop;
 222     exports jdk.internal.reflect to
 223         java.logging,
 224         java.sql,
 225         java.sql.rowset,
 226         jdk.dynalink,
 227         jdk.internal.vm.ci,
 228         jdk.scripting.nashorn,
 229         jdk.unsupported;
 230     exports jdk.internal.vm to
 231         jdk.internal.jvmstat,
 232         jdk.management.agent;
 233     exports jdk.internal.vm.annotation to
 234         jdk.internal.vm.ci,
 235         jdk.unsupported;
 236     exports jdk.internal.util.jar to
 237         jdk.jartool;
 238     exports jdk.internal.util.xml to
 239         jdk.jfr;
 240     exports jdk.internal.util.xml.impl to
 241         jdk.jfr;
 242     exports sun.net to
 243         java.net.http,
 244         jdk.naming.dns;
 245     exports sun.net.ext to
 246         jdk.net;
 247     exports sun.net.dns to
 248         java.security.jgss,
 249         jdk.naming.dns;
 250     exports sun.net.util to
 251         java.desktop,
 252         java.net.http,
 253         jdk.jconsole,
 254         jdk.sctp;
 255     exports sun.net.www to
 256         java.net.http,
 257         jdk.jartool;
 258     exports sun.net.www.protocol.http to
 259         java.security.jgss;
 260     exports sun.nio.ch to
 261         java.management,
 262         jdk.crypto.cryptoki,
 263         jdk.net,
 264         jdk.sctp,
 265         jdk.incubator.foreign;
 266     exports sun.nio.cs to
 267         jdk.charsets;
 268     exports sun.reflect.annotation to
 269         jdk.compiler;
 270     exports sun.reflect.generics.reflectiveObjects to
 271         java.desktop;
 272     exports sun.reflect.misc to
 273         java.desktop,
 274         java.datatransfer,
 275         java.management,
 276         java.management.rmi,
 277         java.rmi,
 278         java.sql.rowset;
 279     exports sun.security.action to
 280         java.desktop,
 281         java.security.jgss,
 282         jdk.incubator.foreign;
 283     exports sun.security.internal.interfaces to
 284         jdk.crypto.cryptoki;
 285     exports sun.security.internal.spec to
 286         jdk.crypto.cryptoki;
 287     exports sun.security.jca to
 288         java.smartcardio,
 289         jdk.crypto.ec,
 290         jdk.crypto.cryptoki,
 291         jdk.naming.dns;
 292     exports sun.security.pkcs to
 293         jdk.crypto.ec,
 294         jdk.jartool;
 295     exports sun.security.provider to
 296         java.rmi,
 297         java.security.jgss,
 298         jdk.crypto.cryptoki,
 299         jdk.security.auth;
 300     exports sun.security.provider.certpath to
 301         java.naming;
 302     exports sun.security.rsa to
 303         jdk.crypto.cryptoki;
 304     exports sun.security.timestamp to
 305         jdk.jartool;
 306     exports sun.security.tools to
 307         jdk.jartool;
 308     exports sun.security.util to
 309         java.desktop,
 310         java.naming,
 311         java.rmi,
 312         java.security.jgss,
 313         java.security.sasl,
 314         java.smartcardio,
 315         java.xml.crypto,
 316         jdk.crypto.ec,
 317         jdk.crypto.cryptoki,
 318         jdk.jartool,
 319         jdk.security.auth,
 320         jdk.security.jgss;
 321     exports sun.security.util.math to
 322         jdk.crypto.ec;
 323     exports sun.security.util.math.intpoly to
 324         jdk.crypto.ec;
 325     exports sun.security.x509 to
 326         jdk.crypto.ec,
 327         jdk.crypto.cryptoki,
 328         jdk.jartool;
 329     exports sun.security.validator to
 330         jdk.jartool;
 331     exports sun.util.cldr to
 332         jdk.jlink;
 333     exports sun.util.locale.provider to
 334         java.desktop,
 335         jdk.jlink,
 336         jdk.localedata;
 337     exports sun.util.logging to
 338         java.desktop,
 339         java.logging,
 340         java.prefs;
 341     exports sun.util.resources to
 342         jdk.localedata;
 343 
 344 
 345     // the service types defined by the APIs in this module
 346 
 347     uses java.lang.System.LoggerFinder;
 348     uses java.net.ContentHandlerFactory;
 349     uses java.net.spi.URLStreamHandlerProvider;
 350     uses java.nio.channels.spi.AsynchronousChannelProvider;
 351     uses java.nio.channels.spi.SelectorProvider;
 352     uses java.nio.charset.spi.CharsetProvider;
 353     uses java.nio.file.spi.FileSystemProvider;
 354     uses java.nio.file.spi.FileTypeDetector;
 355     uses java.security.Provider;
 356     uses java.text.spi.BreakIteratorProvider;
 357     uses java.text.spi.CollatorProvider;
 358     uses java.text.spi.DateFormatProvider;
 359     uses java.text.spi.DateFormatSymbolsProvider;
 360     uses java.text.spi.DecimalFormatSymbolsProvider;
 361     uses java.text.spi.NumberFormatProvider;
 362     uses java.time.chrono.AbstractChronology;
 363     uses java.time.chrono.Chronology;
 364     uses java.time.zone.ZoneRulesProvider;
 365     uses java.util.spi.CalendarDataProvider;
 366     uses java.util.spi.CalendarNameProvider;
 367     uses java.util.spi.CurrencyNameProvider;
 368     uses java.util.spi.LocaleNameProvider;
 369     uses java.util.spi.ResourceBundleControlProvider;
 370     uses java.util.spi.ResourceBundleProvider;
 371     uses java.util.spi.TimeZoneNameProvider;
 372     uses java.util.spi.ToolProvider;
 373     uses javax.security.auth.spi.LoginModule;
 374 
 375     // JDK-internal service types
 376 
 377     uses jdk.internal.logger.DefaultLoggerFinder;
 378     uses sun.text.spi.JavaTimeDateTimePatternProvider;
 379     uses sun.util.spi.CalendarProvider;
 380     uses sun.util.locale.provider.LocaleDataMetaInfo;
 381     uses sun.util.resources.LocaleData.CommonResourceBundleProvider;
 382     uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider;
 383 
 384     // Built-in service providers that are located via ServiceLoader
 385 
 386     provides java.nio.file.spi.FileSystemProvider with
 387         jdk.internal.jrtfs.JrtFileSystemProvider;
 388 }