< prev index next >

src/java.base/share/classes/jdk/internal/module/SystemModules.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 25,35 **** package jdk.internal.module; import java.lang.module.ModuleDescriptor; ! /* * SystemModules class will be generated at link time to create * ModuleDescriptor for the system modules directly to improve * the module descriptor reconstitution time. * * This will skip parsing of module-info.class file and validating --- 25,35 ---- package jdk.internal.module; import java.lang.module.ModuleDescriptor; ! /** * SystemModules class will be generated at link time to create * ModuleDescriptor for the system modules directly to improve * the module descriptor reconstitution time. * * This will skip parsing of module-info.class file and validating
*** 63,81 **** public static boolean hasSplitPackages() { return true; } /** ! * Returns a non-empty array of ModuleDescriptors in the run-time image. * * When running an exploded image it returns an empty array. */ public static ModuleDescriptor[] descriptors() { throw new InternalError("expected to be overridden at link time"); } /** * Returns a non-empty array of ModuleHashes recorded in each module * in the run-time image. * * When running an exploded image it returns an empty array. */ --- 63,90 ---- public static boolean hasSplitPackages() { return true; } /** ! * Returns a non-empty array of ModuleDescriptor objects in the run-time image. * * When running an exploded image it returns an empty array. */ public static ModuleDescriptor[] descriptors() { throw new InternalError("expected to be overridden at link time"); } /** + * Returns a non-empty array of ModuleTarget objects in the run-time image. + * + * When running an exploded image it returns an empty array. + */ + public static ModuleTarget[] targets() { + throw new InternalError("expected to be overridden at link time"); + } + + /** * Returns a non-empty array of ModuleHashes recorded in each module * in the run-time image. * * When running an exploded image it returns an empty array. */
< prev index next >