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

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

XMLWordPrintable

    • b27

        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.

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

                Created:
                Updated:
                Resolved: