Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7196677

diff compares same file to itself in PaddingTest regression test.

XMLWordPrintable

    • b58
    • generic
    • generic
    • Verified

      Introduced due to 6330275
      Changeset http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c8dbb9e19355

      + private static void diff(String fname1, String fname2) throws Exception {
      + if (!Arrays.equals(Files.readAllBytes(Paths.get(fname1)),
      + Files.readAllBytes(Paths.get(fname1)))) {
      + throw new Exception(
      + "files " + fname1 + " and " + fname2 + " differ");
      + }
      + }


      There is a error in the diff, reads n compares fname1 with itself, instead of fname2

            weijun Weijun Wang
            nisriniv Nithya Srinivasan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: