Skip to content

Commit 7eaf8be

Browse files
committedNov 21, 2019
8233845: (sctp) Relax assertion in sun.nio.ch.sctp.AssociationChange::association
Reviewed-by: alanb
1 parent a8a2246 commit 7eaf8be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -93,7 +93,7 @@ public void setAssociation(Association association) {
9393

9494
@Override
9595
public Association association() {
96-
assert association != null;
96+
assert event == AssocChangeEvent.CANT_START ? true : association != null;
9797
return association;
9898
}
9999

0 commit comments

Comments
 (0)
Please sign in to comment.