langtools/test/tools/javac/code/ArrayClone.java
changeset 3547 4471bb5983d1
parent 2986 5370c4ae4f6f
child 3552 a4b8b89bdc9c
equal deleted inserted replaced
3546:00b2974fdf04 3547:4471bb5983d1
    46 
    46 
    47         String out = sw.toString();
    47         String out = sw.toString();
    48         System.out.println(out);
    48         System.out.println(out);
    49 
    49 
    50         for (String line: out.split("\n")) {
    50         for (String line: out.split("\n")) {
    51             String match = "[ \t]+[0-9]+:[ \t]+invokevirtual[ \t]+#[0-9]+; //Method \"\\[Ljava/lang/String;\".clone:\\(\\)Ljava/lang/Object;";
    51             String match = "[ \t]+[0-9]+:[ \t]+invokevirtual[ \t]+#[0-9]+;[ \t]+// Method \"\\[Ljava/lang/String;\".clone:\\(\\)Ljava/lang/Object;";
    52             if (line.matches(match))
    52             if (line.matches(match))
    53                 return;
    53                 return;
    54         }
    54         }
    55         throw new Error("expected string not found in javap output");
    55         throw new Error("expected string not found in javap output");
    56     }
    56     }