projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed return value from descriptor_params_from_paramtypes.
[cacao.git]
/
src
/
vm
/
method.cpp
diff --git
a/src/vm/method.cpp
b/src/vm/method.cpp
index a0c3a4ab233ef65d624c22556fd50eda5f6dd81f..7adb88a84afd9ae03b874905e23e7f930a7868f4 100644
(file)
--- a/
src/vm/method.cpp
+++ b/
src/vm/method.cpp
@@
-1,6
+1,6
@@
/* src/vm/method.cpp - method functions
/* src/vm/method.cpp - method functions
- Copyright (C) 1996-20
05, 2006, 2007, 2008
+ Copyright (C) 1996-20
11
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
This file is part of CACAO.
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
This file is part of CACAO.
@@
-722,7
+722,7
@@
methodinfo *method_vftbl_lookup(vftbl_t *vftbl, methodinfo* m)
m........the method of which the parameters should be counted
RETURN VALUE:
m........the method of which the parameters should be counted
RETURN VALUE:
- The parameter count
or -1 on error
.
+ The parameter count.
*******************************************************************************/
*******************************************************************************/
@@
-735,11
+735,8
@@
int32_t method_get_parametercount(methodinfo *m)
/* is the descriptor fully parsed? */
/* 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;
paramcount = md->paramcount;
@@
-775,8
+772,7
@@
java_handle_objectarray_t *method_get_parametertypearray(methodinfo *m)
/* is the descriptor fully parsed? */
if (m->parseddesc->params == NULL)
/* 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;
paramtypes = md->paramtypes;
paramcount = md->paramcount;