Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2756

ForEachStatement generates invalid Java Code

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Code generated by the ForEachStatement in org.apache.calcite.linq4j.tree looks like:

       for (i : list) {
          ...
        }
      

      I.e. the Paramter Type for the looping parameter is missing.
      Thus, this cannot be used for codegen because Janino fails then.

        Attachments

          Activity

            People

            • Assignee:
              julian.feinauer Julian Feinauer
              Reporter:
              julian.feinauer Julian Feinauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: