langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/ModuleResolution_attribute.java
changeset 43270 de9a02e20567
parent 42822 a84956e7ee4d
equal deleted inserted replaced
43269:12f989542165 43270:de9a02e20567
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2017, 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
    48     }
    48     }
    49 
    49 
    50     public ModuleResolution_attribute(ConstantPool constant_pool,
    50     public ModuleResolution_attribute(ConstantPool constant_pool,
    51                               int resolution_flags)
    51                               int resolution_flags)
    52             throws ConstantPoolException {
    52             throws ConstantPoolException {
    53         this(constant_pool.getUTF8Index(Attribute.ModulePackages),
    53         this(constant_pool.getUTF8Index(Attribute.ModuleResolution),
    54              resolution_flags);
    54              resolution_flags);
    55     }
    55     }
    56 
    56 
    57     public ModuleResolution_attribute(int name_index,
    57     public ModuleResolution_attribute(int name_index,
    58                               int resolution_flags) {
    58                               int resolution_flags) {