404 |
|
*/ |
405 |
|
public void testCancel() { |
406 |
|
SubmissionPublisher<Integer> p = |
407 |
< |
new SubmissionPublisher<Integer>(basicExecutor, 4); // must be < 20 |
407 |
> |
new SubmissionPublisher<>(basicExecutor, 4); // must be < 20 |
408 |
|
TestSubscriber s1 = new TestSubscriber(); |
409 |
|
TestSubscriber s2 = new TestSubscriber(); |
410 |
|
p.subscribe(s1); |
985 |
|
* cvs update -D '2017-11-25' src/main/java/util/concurrent/SubmissionPublisher.java && ant -Djsr166.expensiveTests=true -Djsr166.tckTestClass=SubmissionPublisherTest -Djsr166.methodFilter=testMissedSignal tck; cvs update -A src/main/java/util/concurrent/SubmissionPublisher.java |
986 |
|
*/ |
987 |
|
public void testMissedSignal_8187947() throws Exception { |
988 |
+ |
if (!atLeastJava9()) return; // backport to jdk8 too hard |
989 |
|
final int N = expensiveTests ? (1 << 20) : (1 << 10); |
990 |
|
final CountDownLatch finished = new CountDownLatch(1); |
991 |
|
final SubmissionPublisher<Boolean> pub = new SubmissionPublisher<>(); |