This is an automated email from the ASF dual-hosted git repository. lihan pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 761d23e881 Fix BZ66276 761d23e881 is described below commit 761d23e8813845ec7dbf1a5f65ddf9862a5e2bb0 Author: lihan <li...@apache.org> AuthorDate: Tue Sep 27 15:29:53 2022 +0800 Fix BZ66276 https://bz.apache.org/bugzilla/show_bug.cgi?id=66276 --- java/org/apache/coyote/http2/AbstractNonZeroStream.java | 4 ++-- webapps/docs/changelog.xml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/java/org/apache/coyote/http2/AbstractNonZeroStream.java b/java/org/apache/coyote/http2/AbstractNonZeroStream.java index 0368c4fa6c..f67b17f7d9 100644 --- a/java/org/apache/coyote/http2/AbstractNonZeroStream.java +++ b/java/org/apache/coyote/http2/AbstractNonZeroStream.java @@ -75,8 +75,8 @@ abstract class AbstractNonZeroStream extends AbstractStream { if (isDescendant(parent)) { parent.detachFromParent(); // Cast is always safe since any descendant of this stream must be - // an instance of Stream - getParentStream().addChild((Stream) parent); + // an instance of AbstractNonZeroStream + getParentStream().addChild((AbstractNonZeroStream) parent); } if (exclusive) { diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index b35a5c72c4..9f5b617766 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -105,6 +105,14 @@ issues do not "pop up" wrt. others). --> <section name="Tomcat 9.0.68 (remm)" rtext="in development"> + <subsection name="Coyote"> + <changelog> + <fix> + <bug>66276</bug>: Fix incorrect class cast when adding + a descendant of HTTP/2 streams. (lihan) + </fix> + </changelog> + </subsection> </section> <section name="Tomcat 9.0.67 (remm)" rtext="2022-09-26"> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org