是否可以在 .war 文件上运行 Jdeps?
尝试时出现此错误:
Exception in thread "main" com.sun.tools.classfile.Dependencies$ClassFileError
at jdk.jdeps/com.sun.tools.jdeps.ClassFileReader.scan(ClassFileReader.java:165)
at jdk.jdeps/com.sun.tools.jdeps.ClassFileReader.entries(ClassFileReader.java:114)
at jdk.jdeps/com.sun.tools.jdeps.Archive.contains(Archive.java:95)
at jdk.jdeps/com.sun.tools.jdeps.JdepsConfiguration$Builder.addRoot(JdepsConfiguration.java:495)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.buildConfig(JdepsTask.java:597)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:557)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:533)
at jdk.jdeps/com.sun.tools.jdeps.Main.main(Main.java:49)
Caused by: com.sun.tools.classfile.ConstantPool$InvalidIndex: invalid index #13907
at jdk.jdeps/com.sun.tools.classfile.ConstantPool.get(ConstantPool.java:269)
at jdk.jdeps/com.sun.tools.classfile.ConstantPool.get(ConstantPool.java:280)
at jdk.jdeps/com.sun.tools.classfile.ConstantPool.getClassInfo(ConstantPool.java:291)
at jdk.jdeps/com.sun.tools.classfile.ClassFile.getName(ClassFile.java:123)
at jdk.jdeps/com.sun.tools.jdeps.ClassFileReader.scan(ClassFileReader.java:162)