--- jsr166/src/test/tck/Collection8Test.java 2016/11/13 02:10:10 1.22 +++ jsr166/src/test/tck/Collection8Test.java 2016/11/14 21:33:58 1.23 @@ -314,7 +314,9 @@ public class Collection8Test extends JSR } } catch (Throwable ex) { System.err.println(impl.klazz()); - System.err.printf("c=%s%n", c); + // c is at risk of corruption if we got here, so be lenient + try { System.err.printf("c=%s%n", c); } + catch (Throwable t) { t.printStackTrace(); } System.err.printf("n=%d%n", n); System.err.printf("orig=%s%n", orig); System.err.printf("accepts=%s%n", accepts);