src/java.base/share/classes/java/lang/module/ModuleDescriptor.java
changeset 52427 3c6aa484536c
parent 51327 a19fda433921
equal deleted inserted replaced
52426:38bf0c9c4e64 52427:3c6aa484536c
     1 /*
     1 /*
     2  * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  2601     static {
  2601     static {
  2602         /**
  2602         /**
  2603          * Setup the shared secret to allow code in other packages access
  2603          * Setup the shared secret to allow code in other packages access
  2604          * private package methods in java.lang.module.
  2604          * private package methods in java.lang.module.
  2605          */
  2605          */
  2606         jdk.internal.misc.SharedSecrets
  2606         jdk.internal.access.SharedSecrets
  2607             .setJavaLangModuleAccess(new jdk.internal.misc.JavaLangModuleAccess() {
  2607             .setJavaLangModuleAccess(new jdk.internal.access.JavaLangModuleAccess() {
  2608                 @Override
  2608                 @Override
  2609                 public Builder newModuleBuilder(String mn,
  2609                 public Builder newModuleBuilder(String mn,
  2610                                                 boolean strict,
  2610                                                 boolean strict,
  2611                                                 Set<ModuleDescriptor.Modifier> modifiers) {
  2611                                                 Set<ModuleDescriptor.Modifier> modifiers) {
  2612                     return new Builder(mn, strict, modifiers);
  2612                     return new Builder(mn, strict, modifiers);