/* src/vm/method.cpp - method functions
- Copyright (C) 1996-2005, 2006, 2007, 2008
+ Copyright (C) 1996-2011
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
This file is part of CACAO.
m........the method of which the parameters should be counted
RETURN VALUE:
- The parameter count or -1 on error.
+ The parameter count.
*******************************************************************************/
/* is the descriptor fully parsed? */
- if (md->params == NULL) {
- if (!descriptor_params_from_paramtypes(md, m->flags)) {
- return -1;
- }
- }
+ if (md->params == NULL)
+ descriptor_params_from_paramtypes(md, m->flags);
paramcount = md->paramcount;
/* is the descriptor fully parsed? */
if (m->parseddesc->params == NULL)
- if (!descriptor_params_from_paramtypes(md, m->flags))
- return NULL;
+ descriptor_params_from_paramtypes(md, m->flags);
paramtypes = md->paramtypes;
paramcount = md->paramcount;