8343286: Missing unchecked cast warning in polymorphic method call

Reviewed-by: mcimadamore
This commit is contained in:
Vicente Romero 2024-11-13 15:31:02 +00:00
parent b80ca4902a
commit cc2acd14b1
10 changed files with 40 additions and 2 deletions

View file

@ -505,6 +505,7 @@ final class ForEachOps {
// "happens-before" completion of the associated left-most leaf task
// of right subtree (if any, which can be this task's right sibling)
//
@SuppressWarnings("unchecked")
var leftDescendant = (ForEachOrderedTask<S, T>)NEXT.getAndSet(this, null);
if (leftDescendant != null)
leftDescendant.tryComplete();