cast in input causes compilation error
Submitted by Danny Groenewegen on 25 October 2010 at 23:04define page root(){ var u := "123" input(u as String) } [java] [ Main | info ] stage 8: generation analysis : [user/system] = [0.00s/0.00s] [java] [ Main | info ] stage 9: code generationMain: rewriting failed, trace: [java] webdslc_main_0_0 [java] xtc_io_wrap_5_0 [java] option_wrap_5_0 [java] xtc_io_1_0 [java] xtc_temp_files_1_0 [java] restore_always_2_0 [java] xtc_webdslc_0_0 [java] stage_1_1 [java] dr_scope_1_1 [java] log_timed_1_1 [java] core_to_java_servlet_0_1 [java] log_time_1_1 [java] generate_code_java_servlet_0_0 [java] generate_code_java_servlet_0_0 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] scope_local_emit_1_1 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] dr_scope_1_1 [java] log_time_1_1 [java] GenerateCodeJavaServlet_0_0 [java] actions_inputs_java_servlet_template_0_0 [java] map_handle_actions_input_to_java_servlet_0_0 [java] collect_om_1_0 [java] collect_om_2_0 [java] foldr_3_0 [java] collect_om_2_0 [java] handle_actions_input_to_java_servlet_0_0 [java] handle_actions_input_to_java_servlet_0_0_fragment_7 [java] handle_actions_input_to_java_servlet_0_0_fragment_6 [java] handle_actions_input_to_java_servlet_0_0_fragment_5 [java] handle_actions_input_to_java_servlet_0_0_fragment_4 [java] handle_actions_input_to_java_servlet_0_0_fragment_3 [java] [ Main | critical ] Internal error: with clause failed unexpectedly in rule 'handle-actions-input-to-java-servlet-string-helper' [java] TemplateCall("inputString",[Cast(Var("u0"{OriginalNameAnno("u")}){TypeAnno(SimpleSort("String"){DefValueAnno(String(""))})},SimpleSort("String"{TypeAnno(ClassSort("String"){NativeClassAnno("String","java.lang.String")})}){DefValueAnno(String(""))}){TypeAnno(SimpleSort("String"){DefValueAnno(String(""))})}],[],TemplateBody([])){InputNumber("input0")}
Log in to post comments