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

Tweak janino code generation to allow debugging

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.0
    • Component/s: core
    • Labels:
      None

      Description

      To allow debugging generated code, update codeGen of metadataHandler in JaninoRelMetadataProvider to include Class definition at begin of dynamic code.

      JaninoRelMetadataProvider uses IClassBodyEvaluator to compile generated code. The generated classes can not be debugged in interactively using Idea using the method referenced by http://janino-compiler.github.io/janino/ because generated code only contains classBody.
      If using ISimpleCompiler to compile complete compile unit instead of classBody, we could step into the code.

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              jinyu.zj jingzhang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: