Details
-
Bug
-
Status: Resolved
-
P4
-
Resolution: Fixed
-
18
-
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.
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
- relates to
-
JDK-8277417 C1 LIR instruction for load-klass
-
- Resolved
-