equal
deleted
inserted
replaced
25 |
25 |
26 package com.sun.tools.jdeps; |
26 package com.sun.tools.jdeps; |
27 |
27 |
28 import com.sun.tools.classfile.ClassFile; |
28 import com.sun.tools.classfile.ClassFile; |
29 import com.sun.tools.classfile.ConstantPoolException; |
29 import com.sun.tools.classfile.ConstantPoolException; |
30 import jdk.internal.misc.SharedSecrets; |
|
31 |
30 |
32 import java.util.Map; |
31 import java.util.Map; |
33 import java.util.concurrent.ConcurrentHashMap; |
32 import java.util.concurrent.ConcurrentHashMap; |
34 import java.util.jar.JarEntry; |
33 import java.util.jar.JarEntry; |
35 import java.util.jar.JarFile; |
34 import java.util.jar.JarFile; |
46 } |
45 } |
47 |
46 |
48 public static void add(JarFile jarfile, JarEntry e, ClassFile cf) |
47 public static void add(JarFile jarfile, JarEntry e, ClassFile cf) |
49 throws ConstantPoolException |
48 throws ConstantPoolException |
50 { |
49 { |
51 String realName = SharedSecrets.javaUtilJarAccess().getRealName(jarfile, e); |
50 String realName = e.getRealName(); |
52 if (realName.startsWith(META_INF_VERSIONS)) { |
51 if (realName.startsWith(META_INF_VERSIONS)) { |
53 int len = META_INF_VERSIONS.length(); |
52 int len = META_INF_VERSIONS.length(); |
54 int n = realName.indexOf('/', len); |
53 int n = realName.indexOf('/', len); |
55 if (n > 0) { |
54 if (n > 0) { |
56 String version = realName.substring(len, n); |
55 String version = realName.substring(len, n); |