Skip to content

Repair the jython (Python 2) parser's parameter-default initialization #744

Description

@khatchad

Same defect as the parent in the sibling parser: com.ibm.wala.cast.python.jython's PythonParser builds its parameter-default initialization as DECL_STMT locals inside the function-definition visit and its visitClassDef discards member visit results the same way the jython3 parser did, so method defaults never initialize there either. The structure differs from the jython3 parser (locals rather than addGlobal globals), so the repair does not transplant mechanically; it needs its own pass over that parser's defaults pipeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingworkstream:algorithmCore analysis algorithm correctness

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions