--- parser3/src/classes/reflection.C 2017/02/15 17:05:21 1.84 +++ parser3/src/classes/reflection.C 2017/05/17 14:22:11 1.86 @@ -10,7 +10,7 @@ #include "pa_vbool.h" #include "pa_vobject.h" -volatile const char * IDENT_REFLECTION_C="$Id: reflection.C,v 1.84 2017/02/15 17:05:21 moko Exp $"; +volatile const char * IDENT_REFLECTION_C="$Id: reflection.C,v 1.86 2017/05/17 14:22:11 moko Exp $"; static const String class_type_methoded("methoded"); @@ -66,7 +66,7 @@ static void _create(Request& r, MethodPa valid_options++; params_hash=vparams_hash->as_hash("arguments"); if(params.count()>1) - throw Exception(PARSER_RUNTIME, 0, "agruments should not be specified as hash and as create params"); + throw Exception(PARSER_RUNTIME, 0, "arguments should not be specified as hash and as create params"); } if(valid_options!=options->count()) throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); @@ -222,11 +222,15 @@ static void _methods(Request& r, MethodP VHash& result=*new VHash; +#ifdef HASH_ORDER if(reverse){ for(HashStringMethod::ReverseIterator i(vclass->get_methods()); i; i.prev()){ result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser)); } } else { +#else + { +#endif for(HashStringMethod::Iterator i(vclass->get_methods()); i; i.next()){ result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser)); }