--- parser3/src/classes/reflection.C 2014/06/29 22:55:21 1.30 +++ parser3/src/classes/reflection.C 2015/04/08 18:08:52 1.32 @@ -9,7 +9,7 @@ #include "pa_request.h" #include "pa_vbool.h" -volatile const char * IDENT_REFLECTION_C="$Id: reflection.C,v 1.30 2014/06/29 22:55:21 misha Exp $"; +volatile const char * IDENT_REFLECTION_C="$Id: reflection.C,v 1.32 2015/04/08 18:08:52 moko Exp $"; static const String class_type_methoded("methoded"); @@ -193,7 +193,7 @@ static void _def(Request& r, MethodParam const String& name=params.as_string(1, "name must be string"); r.write_no_lang(VBool::get(r.get_class(name)!=0)); } else { - throw Exception(PARSER_RUNTIME, &type, "is invalid type, must be '%s'", def_class); + throw Exception(PARSER_RUNTIME, &type, "is invalid type, must be '%s'", def_class.cstr()); } } @@ -288,6 +288,8 @@ static void _method_info(Request& r, Met case Method::CT_STATIC: call_type=new VString(method_call_type_static); break; + case Method::CT_ANY: + break; } if(call_type) hash->put(method_call_type, call_type);