mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6715757: javap does not print "extends java.lang.Object"
Reviewed-by: ksrini
This commit is contained in:
parent
fdd75a4bbb
commit
23aea10d3e
4 changed files with 16 additions and 25 deletions
|
@ -23,8 +23,9 @@
|
|||
|
||||
/*
|
||||
* @test
|
||||
* @bug 4880663
|
||||
* @bug 4880663 6715757
|
||||
* @summary javap could output whitespace between class name and opening brace
|
||||
* javap prints "extends java.lang.Object"
|
||||
*/
|
||||
|
||||
|
||||
|
@ -38,7 +39,7 @@ public class T4880663 {
|
|||
public void run() throws IOException {
|
||||
File javaFile = writeTestFile();
|
||||
File classFile = compileTestFile(javaFile);
|
||||
verify(classFile, "class Test {");
|
||||
verify(classFile, "class Test extends java.lang.Object {");
|
||||
|
||||
if (errors > 0)
|
||||
throw new Error(errors + " found.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue