The minimal example:

application test

entity MyEnt {
  length :: Int
}

page root() {
  var e : MyEnt := MyEnt { length := 0 };
  output(e.length)
}

The error given during compilation:

Main: rewriting failed, trace:
    webdslc_main_0_0
    xtc_io_wrap_5_0
    option_wrap_5_0
    xtc_io_1_0
    xtc_temp_files_1_0
    restore_always_2_0
    xtc_webdslc_0_0
    stage_1_1
    dr_scope_1_1
    log_timed_1_1
    core_to_java_servlet_0_1
    log_time_1_1
    generate_code_java_servlet_0_0
    generate_code_java_servlet_0_0
    dr_scope_1_1
    dr_scope_1_1
    dr_scope_1_1
    dr_scope_1_1
    dr_scope_1_1
    dr_scope_1_1
    dr_scope_1_1
    dr_scope_1_1
    scope_local_emit_1_1
    dr_scope_1_1
    dr_scope_1_1
    dr_scope_1_1
    log_time_1_1
    GenerateCodeJavaServlet_0_0
    log_time_1_1
    data_validation_phase_0_0
    collect_data_validation_to_java_servlet_0_0
    collect_om_1_0
    collect_om_2_0
    foldr_3_0
    collect_om_2_0
    data_validation_to_java_servlet_0_0
    control_flow_tcall_0_1
    control_flow_tcall_defined_template_0_1
    zip_1_0
    genzip_4_0
    _2_0
    expression_to_java_servlet_0_0
    expression_to_java_servlet_0_0_fragment_3
    expression_to_java_servlet_0_0_fragment_2
    expression_to_java_servlet_0_0_fragment_1
    expression_to_java_servlet_0_0_fragment_0
    field_access_to_java_servlet_0_0
[ Main | critical ] Internal error: with clause failed unexpectedly in rule 'field-access-to-java-servlet'
           FieldAccess(Var("e0"{OriginalNameAnno("e")}){TypeAnno(SimpleSort("MyEnt"){EntityAnno("id",None,False),DefValueAnno(Null)})},"length"){TypeAnno(SimpleSort("Int"){DefValueAnno(Int("0"))})}
Submitted by Christoffer Gersen on 9 November 2012 at 17:46

On 9 November 2012 at 17:49 Christoffer Gersen closed this issue.

On 9 November 2012 at 17:49 Christoffer Gersen commented:

Fixed in r5489


On 9 November 2012 at 17:50 Christoffer Gersen tagged 1.3.0

Log in to post comments