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