According to VDL documentation (4.0), the component type for a doctype tag is "jakarta.faces.HtmlDoctype".
In the com.sun.faces.facelets.tag.faces.html.HtmlLibrary class, it is defiled as a UIOutput.COMPONENT_TYPE instead of a HtmlDoctype.COMPONENT_TYPE. Which leads to ClassCastException when the tag is rendered.
To reproduce, just add a tag to any jsf page, and there will be a ClassCastException.
According to VDL documentation (4.0), the component type for a doctype tag is "jakarta.faces.HtmlDoctype". In the com.sun.faces.facelets.tag.faces.html.HtmlLibrary class, it is defiled as a UIOutput.COMPONENT_TYPE instead of a HtmlDoctype.COMPONENT_TYPE. Which leads to ClassCastException when the tag is rendered.
To reproduce, just add a tag to any jsf page, and there will be a ClassCastException.