Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259576

Misplaced curly brace in Matcher::find_shared_post_visit

XMLWordPrintable

    • b05

        SonarCloud demo instance reports the issue here:

            case Op_VectorMaskCmp: {
              n->set_req(1, new BinaryNode(n->in(1), n->in(2)));
              n->set_req(2, n->in(3));
              n->del_req(3);
              break;
            default: // <----- ERROR
              break;
            }

        "The direct parent of this switch-label is not the body of a switch statement."

        This is added by JDK-8223347, and it is an obviously misplaced curly-brace. It is innocious in current code, but may become problematic as more cases are added to the switch.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: