30 import java.io.FileDescriptor;
31 import java.io.FileInputStream;
32 import java.io.FileOutputStream;
33 import java.io.IOException;
34 import java.io.InputStream;
35 import java.io.PrintStream;
36 import java.io.UnsupportedEncodingException;
37 import java.lang.annotation.Annotation;
38 import java.lang.module.ModuleDescriptor;
39 import java.lang.reflect.Constructor;
40 import java.lang.reflect.Executable;
41 import java.lang.reflect.Method;
42 import java.lang.reflect.Modifier;
43 import java.net.URI;
44 import java.security.AccessControlContext;
45 import java.security.ProtectionDomain;
46 import java.security.AccessController;
47 import java.security.PrivilegedAction;
48 import java.nio.channels.Channel;
49 import java.nio.channels.spi.SelectorProvider;
50 import java.util.Iterator;
51 import java.util.List;
52 import java.util.Map;
53 import java.util.Objects;
54 import java.util.Properties;
55 import java.util.PropertyPermission;
56 import java.util.ResourceBundle;
57 import java.util.function.Supplier;
58 import java.util.concurrent.ConcurrentHashMap;
59 import java.util.stream.Stream;
60
61 import jdk.internal.module.ModuleBootstrap;
62 import jdk.internal.module.ServicesCatalog;
63 import jdk.internal.reflect.CallerSensitive;
64 import jdk.internal.reflect.Reflection;
65 import jdk.internal.HotSpotIntrinsicCandidate;
66 import jdk.internal.misc.JavaLangAccess;
67 import jdk.internal.misc.SharedSecrets;
68 import jdk.internal.misc.VM;
69 import jdk.internal.logger.LoggerFinderLoader;
2131 public void addOpensToAllUnnamed(Module m, Iterator<String> packages) {
2132 m.implAddOpensToAllUnnamed(packages);
2133 }
2134 public void addUses(Module m, Class<?> service) {
2135 m.implAddUses(service);
2136 }
2137 public boolean isReflectivelyExported(Module m, String pn, Module other) {
2138 return m.isReflectivelyExported(pn, other);
2139 }
2140 public boolean isReflectivelyOpened(Module m, String pn, Module other) {
2141 return m.isReflectivelyOpened(pn, other);
2142 }
2143 public ServicesCatalog getServicesCatalog(ModuleLayer layer) {
2144 return layer.getServicesCatalog();
2145 }
2146 public Stream<ModuleLayer> layers(ModuleLayer layer) {
2147 return layer.layers();
2148 }
2149 public Stream<ModuleLayer> layers(ClassLoader loader) {
2150 return ModuleLayer.layers(loader);
2151 }
2152
2153 public String newStringUTF8NoRepl(byte[] bytes, int off, int len) {
2154 return StringCoding.newStringUTF8NoRepl(bytes, off, len);
2155 }
2156
2157 public byte[] getBytesUTF8NoRepl(String s) {
2158 return StringCoding.getBytesUTF8NoRepl(s);
2159 }
2160
2161 });
2162 }
2163 }
|
30 import java.io.FileDescriptor;
31 import java.io.FileInputStream;
32 import java.io.FileOutputStream;
33 import java.io.IOException;
34 import java.io.InputStream;
35 import java.io.PrintStream;
36 import java.io.UnsupportedEncodingException;
37 import java.lang.annotation.Annotation;
38 import java.lang.module.ModuleDescriptor;
39 import java.lang.reflect.Constructor;
40 import java.lang.reflect.Executable;
41 import java.lang.reflect.Method;
42 import java.lang.reflect.Modifier;
43 import java.net.URI;
44 import java.security.AccessControlContext;
45 import java.security.ProtectionDomain;
46 import java.security.AccessController;
47 import java.security.PrivilegedAction;
48 import java.nio.channels.Channel;
49 import java.nio.channels.spi.SelectorProvider;
50 import java.nio.charset.Charset;
51 import java.util.Iterator;
52 import java.util.List;
53 import java.util.Map;
54 import java.util.Objects;
55 import java.util.Properties;
56 import java.util.PropertyPermission;
57 import java.util.ResourceBundle;
58 import java.util.function.Supplier;
59 import java.util.concurrent.ConcurrentHashMap;
60 import java.util.stream.Stream;
61
62 import jdk.internal.module.ModuleBootstrap;
63 import jdk.internal.module.ServicesCatalog;
64 import jdk.internal.reflect.CallerSensitive;
65 import jdk.internal.reflect.Reflection;
66 import jdk.internal.HotSpotIntrinsicCandidate;
67 import jdk.internal.misc.JavaLangAccess;
68 import jdk.internal.misc.SharedSecrets;
69 import jdk.internal.misc.VM;
70 import jdk.internal.logger.LoggerFinderLoader;
2132 public void addOpensToAllUnnamed(Module m, Iterator<String> packages) {
2133 m.implAddOpensToAllUnnamed(packages);
2134 }
2135 public void addUses(Module m, Class<?> service) {
2136 m.implAddUses(service);
2137 }
2138 public boolean isReflectivelyExported(Module m, String pn, Module other) {
2139 return m.isReflectivelyExported(pn, other);
2140 }
2141 public boolean isReflectivelyOpened(Module m, String pn, Module other) {
2142 return m.isReflectivelyOpened(pn, other);
2143 }
2144 public ServicesCatalog getServicesCatalog(ModuleLayer layer) {
2145 return layer.getServicesCatalog();
2146 }
2147 public Stream<ModuleLayer> layers(ModuleLayer layer) {
2148 return layer.layers();
2149 }
2150 public Stream<ModuleLayer> layers(ClassLoader loader) {
2151 return ModuleLayer.layers(loader);
2152 }
2153
2154 public String newStringNoRepl(byte[] bytes, Charset cs) {
2155 return StringCoding.newStringNoRepl(bytes, cs);
2156 }
2157
2158 public byte[] getBytesNoRepl(String s, Charset cs) {
2159 return StringCoding.getBytesNoRepl(s, cs);
2160 }
2161
2162 public String newStringUTF8NoRepl(byte[] bytes, int off, int len) {
2163 return StringCoding.newStringUTF8NoRepl(bytes, off, len);
2164 }
2165
2166 public byte[] getBytesUTF8NoRepl(String s) {
2167 return StringCoding.getBytesUTF8NoRepl(s);
2168 }
2169
2170 });
2171 }
2172 }
|