Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5603

Refactor super invocation setting

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • 3
    • Low
    • NEW
    • NEW

      Currently in sources generation the super invocation is managed by field index

      // Some comments here
      ExplicitConstructorInvocationStmt superStatement = (ExplicitConstructorInvocationStmt) statement;
                      NameExpr algorithmNameExpr = (NameExpr) superStatement.getArgument(2);
                      algorithmNameExpr.setName(String.format("\"%s\"", treeModel.getAlgorithmName()));
      

      This must be changed so that field to be set is looked for by name and - if not found, an exception must be thrown (as for the AssignExpr)

              gcardosi Gabriele Cardosi (Inactive)
              gcardosi Gabriele Cardosi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: