diff -r bd3cf6f243be -r b33effe4f252 langtools/test/com/sun/javadoc/lib/JavadocTester.java --- a/langtools/test/com/sun/javadoc/lib/JavadocTester.java Thu Jun 12 15:37:29 2014 -0700 +++ b/langtools/test/com/sun/javadoc/lib/JavadocTester.java Thu May 22 12:16:53 2014 -0700 @@ -451,8 +451,12 @@ for (String s : strings) { int currentIndex = fileString.indexOf(s); checking(s + " at index " + currentIndex); - if (currentIndex >= prevIndex) { - passed(s + "is in the correct order"); + if (currentIndex == -1) { + failed(s + " not found."); + continue; + } + if (currentIndex > prevIndex) { + passed(s + " is in the correct order"); } else { failed(s + " is in the wrong order."); }