langtools/test/tools/javap/T4884240.java
changeset 3547 4471bb5983d1
parent 2319 71bde363b33e
child 5520 86e4b9a9da40
equal deleted inserted replaced
3546:00b2974fdf04 3547:4471bb5983d1
    44         if (rc != 0)
    44         if (rc != 0)
    45             throw new Exception("unexpected return code: " + rc);
    45             throw new Exception("unexpected return code: " + rc);
    46         pw.close();
    46         pw.close();
    47         String[] lines = sw.toString().split("\n");
    47         String[] lines = sw.toString().split("\n");
    48         if (lines.length < 3
    48         if (lines.length < 3
    49             || !lines[0].startsWith("Classfile")
    49             || !lines[0].trim().startsWith("Classfile")
    50             || !lines[1].startsWith("Last modified")
    50             || !lines[1].trim().startsWith("Last modified")
    51             || !lines[2].startsWith("MD5")) {
    51             || !lines[2].trim().startsWith("MD5")) {
    52             System.out.println(sw);
    52             System.out.println(sw);
    53             throw new Exception("unexpected output");
    53             throw new Exception("unexpected output");
    54         }
    54         }
    55     }
    55     }
    56 }
    56 }