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

LIR_OpLoadKlass::_info shadows the field of the same name from LIR_Op

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      SonarCloud complains about code added in JDK-8277417:
       Field "_info" shadows a field of the same name in base class "LIR_Op"

      class LIR_OpLoadKlass: public LIR_Op {
        friend class LIR_OpVisitState;

       private:
        LIR_Opr _obj;
        CodeEmitInfo* _info; <--- here

      From the look of it, it seems risky to have two inconsistent fields here. Depending on which base class we use to access it, we might have different _info-s referenced.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: