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