8129759: Mark two tests from DistinctOpTest.java and SliceOpTest.java as serialization hostile

Reviewed-by: psandoz
This commit is contained in:
Amy Lu 2015-06-30 10:00:46 +02:00
parent 84ebc260b9
commit 512986a71c
2 changed files with 3 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public class DistinctOpTest extends OpTestCase {
assertSorted(result);
}
@Test
@Test(groups = { "serialization-hostile" })
public void testStable() {
// Create N instances of Integer all with the same value
List<Integer> input = IntStream.rangeClosed(0, 1000)

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -190,6 +190,7 @@ public class SliceOpTest extends OpTestCase {
}
}
@Test(groups = { "serialization-hostile" })
public void testSkipLimitOpsWithNonSplittingSpliterator() {
class NonSplittingNotSubsizedOrderedSpliterator<T> implements Spliterator<T> {
Spliterator<T> s;