< prev index next >

src/java.base/share/classes/module-info.java

Print this page

  1 /*
  2  * Copyright (c) 2014, 2023, 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

 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;

357         jdk.jartool,
358         jdk.security.auth,
359         jdk.security.jgss;
360     exports sun.security.x509 to
361         jdk.crypto.cryptoki,
362         jdk.jartool;
363     exports sun.security.validator to
364         jdk.jartool;
365     exports sun.util.cldr to
366         jdk.jlink;
367     exports sun.util.locale.provider to
368         java.desktop,
369         jdk.jlink,
370         jdk.localedata;
371     exports sun.util.logging to
372         java.desktop,
373         java.logging,
374         java.prefs;
375     exports sun.util.resources to
376         jdk.localedata;

377 
378     // the service types defined by the APIs in this module
379 
380     uses java.lang.System.LoggerFinder;
381     uses java.net.ContentHandlerFactory;
382     uses java.net.spi.InetAddressResolverProvider;
383     uses java.net.spi.URLStreamHandlerProvider;
384     uses java.nio.channels.spi.AsynchronousChannelProvider;
385     uses java.nio.channels.spi.SelectorProvider;
386     uses java.nio.charset.spi.CharsetProvider;
387     uses java.nio.file.spi.FileSystemProvider;
388     uses java.nio.file.spi.FileTypeDetector;
389     uses java.security.Provider;
390     uses java.text.spi.BreakIteratorProvider;
391     uses java.text.spi.CollatorProvider;
392     uses java.text.spi.DateFormatProvider;
393     uses java.text.spi.DateFormatSymbolsProvider;
394     uses java.text.spi.DecimalFormatSymbolsProvider;
395     uses java.text.spi.NumberFormatProvider;
396     uses java.time.chrono.AbstractChronology;

  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

 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.reflect.code;
 94     exports java.lang.reflect.code.analysis;
 95     exports java.lang.reflect.code.bytecode;
 96     exports java.lang.reflect.code.interpreter;
 97     exports java.lang.reflect.code.op;
 98     exports java.lang.reflect.code.parser;
 99     exports java.lang.reflect.code.type;
100     exports java.lang.reflect.code.writer;
101     exports java.lang.runtime;
102     exports java.math;
103     exports java.net;
104     exports java.net.spi;
105     exports java.nio;
106     exports java.nio.channels;
107     exports java.nio.channels.spi;
108     exports java.nio.charset;
109     exports java.nio.charset.spi;
110     exports java.nio.file;
111     exports java.nio.file.attribute;
112     exports java.nio.file.spi;
113     exports java.security;
114     exports java.security.cert;
115     exports java.security.interfaces;
116     exports java.security.spec;
117     exports java.text;
118     exports java.text.spi;
119     exports java.time;
120     exports java.time.chrono;

365         jdk.jartool,
366         jdk.security.auth,
367         jdk.security.jgss;
368     exports sun.security.x509 to
369         jdk.crypto.cryptoki,
370         jdk.jartool;
371     exports sun.security.validator to
372         jdk.jartool;
373     exports sun.util.cldr to
374         jdk.jlink;
375     exports sun.util.locale.provider to
376         java.desktop,
377         jdk.jlink,
378         jdk.localedata;
379     exports sun.util.logging to
380         java.desktop,
381         java.logging,
382         java.prefs;
383     exports sun.util.resources to
384         jdk.localedata;
385     exports java.lang.reflect.code.type.impl;
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;
< prev index next >