changeset 57040:533f1183d7c6

8233845: (sctp) Relax assertion in sun.nio.ch.sctp.AssociationChange::association Reviewed-by: alanb
author chegar
date Thu, 21 Nov 2019 12:14:25 +0000
parents b24f4caa1411
children 696e6a7e3b6a
files src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java	Thu Nov 21 09:10:21 2019 +0000
+++ b/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java	Thu Nov 21 12:14:25 2019 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2019, 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
@@ -93,7 +93,7 @@
 
     @Override
     public Association association() {
-        assert association != null;
+        assert event == AssocChangeEvent.CANT_START ? true : association != null;
         return association;
     }