mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-12 06:29:37 +00:00
8195589: T6587786.java failed after JDK-8189997
Reviewed-by: iris, vromero
This commit is contained in:
parent
8190217971
commit
21b62fef33
@ -55,7 +55,6 @@ tools/javac/modules/SourceInSymlinkTest.java
|
||||
# javap
|
||||
|
||||
tools/javap/output/RepeatingTypeAnnotations.java 8057687 generic-all emit correct byte code an attributes for type annotations
|
||||
tools/javap/T6587786.java 8195589 generic-all T6587786.java failed after JDK-8189997
|
||||
|
||||
###########################################################################
|
||||
#
|
||||
|
||||
@ -36,18 +36,21 @@ public class T6587786 {
|
||||
}
|
||||
|
||||
public void run() throws IOException {
|
||||
javap("com.sun.javadoc.Doc", "com.sun.crypto.provider.ai");
|
||||
javap("com.sun.crypto.provider.ai", "com.sun.javadoc.ClassDoc");
|
||||
javap("jdk.javadoc.doclet.Doclet", "java.util.List");
|
||||
javap("java.util.List", "jdk.javadoc.doclet.StandardDoclet");
|
||||
}
|
||||
|
||||
void javap(String... args) {
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter out = new PrintWriter(sw);
|
||||
//sun.tools.javap.Main.entry(args);
|
||||
int rc = com.sun.tools.javap.Main.run(args, out);
|
||||
if (rc != 0)
|
||||
throw new Error("javap failed. rc=" + rc);
|
||||
out.close();
|
||||
System.out.println(sw.toString());
|
||||
try {
|
||||
int rc = com.sun.tools.javap.Main.run(args, out);
|
||||
if (rc != 0)
|
||||
throw new Error("javap failed. rc=" + rc);
|
||||
} finally {
|
||||
out.close();
|
||||
System.out.println(sw.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user