eclipse-2018-12

The type org.objectweb.asm.ClassVisitor cannot be resolved. It is indirectly referenced from required .class files

删除回忆录丶 提交于 2021-01-29 07:18:39
问题 I am using ASM 7.0 in a short Java 11 project, which convert a class file to a text using the following code: final var charset = StandardCharsets.UTF_8; final ByteArrayOutputStream bos = new ByteArrayOutputStream(); try (var pw = new PrintWriter(bos, false, charset)) { final org.objectweb.asm.ClassVisitor traceClassVisitor = new TraceClassVisitor(null, new org.objectweb.asm.util.Textifier(), new PrintWriter(bos)); new ClassReader(stream.getStream()).accept(traceClassVisitor, ClassReader.SKIP