7080464: langtools regression test failures when assertions are enabled
Reviewed-by: jjg
--- a/langtools/test/tools/javac/api/TestJavacTaskScanner.java Fri Mar 22 12:44:48 2013 +0000
+++ b/langtools/test/tools/javac/api/TestJavacTaskScanner.java Fri Mar 22 10:08:46 2013 -0700
@@ -179,7 +179,6 @@
@Override
public Scanner newScanner(CharSequence input, boolean keepDocComments) {
- assert !keepDocComments;
if (input instanceof CharBuffer) {
return new MyScanner(this, (CharBuffer)input, test);
} else {
@@ -190,7 +189,6 @@
@Override
public Scanner newScanner(char[] input, int inputLength, boolean keepDocComments) {
- assert !keepDocComments;
return new MyScanner(this, input, inputLength, test);
}
--- a/langtools/test/tools/javac/diags/MessageFile.java Fri Mar 22 12:44:48 2013 +0000
+++ b/langtools/test/tools/javac/diags/MessageFile.java Fri Mar 22 10:08:46 2013 -0700
@@ -65,7 +65,7 @@
}
void insertAfter(Line l) {
- assert prev == null && next == null;
+ assert l.prev == null && l.next == null;
l.prev = this;
l.next = next;
if (next == null)
@@ -82,7 +82,7 @@
}
void insertBefore(Line l) {
- assert prev == null && next == null;
+ assert l.prev == null && l.next == null;
l.prev = prev;
l.next = this;
if (prev == null)
--- a/langtools/test/tools/javac/diags/MessageInfo.java Fri Mar 22 12:44:48 2013 +0000
+++ b/langtools/test/tools/javac/diags/MessageInfo.java Fri Mar 22 10:08:46 2013 -0700
@@ -409,5 +409,3 @@
}
}
-
-