< prev index next >
src/jdk.jdeps/share/classes/com/sun/tools/jdeps/VersionHelper.java
Print this page
*** 25,35 ****
package com.sun.tools.jdeps;
import com.sun.tools.classfile.ClassFile;
import com.sun.tools.classfile.ConstantPoolException;
- import jdk.internal.misc.SharedSecrets;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
--- 25,34 ----
*** 46,56 ****
}
public static void add(JarFile jarfile, JarEntry e, ClassFile cf)
throws ConstantPoolException
{
! String realName = SharedSecrets.javaUtilJarAccess().getRealName(jarfile, e);
if (realName.startsWith(META_INF_VERSIONS)) {
int len = META_INF_VERSIONS.length();
int n = realName.indexOf('/', len);
if (n > 0) {
String version = realName.substring(len, n);
--- 45,55 ----
}
public static void add(JarFile jarfile, JarEntry e, ClassFile cf)
throws ConstantPoolException
{
! String realName = e.getRealName();
if (realName.startsWith(META_INF_VERSIONS)) {
int len = META_INF_VERSIONS.length();
int n = realName.indexOf('/', len);
if (n > 0) {
String version = realName.substring(len, n);
< prev index next >