You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by Andreas Schlapbach <sc...@iam.unibe.ch> on 2002/03/01 11:24:58 UTC

Type.VOID is not a valid ParameterDescriptor

The signature  of 'void a()' is not (V)V, took me 2 days to figure out.

So I'm proposing something like that:

for(int i=0; i<arg_types.length; i++) {
  if (Type.VOID == arg_types[i])
    throw new ClassGenException("`void' is an illegal
		ParameterDescriptor (see VM Spec. p.102)");
}

to add to the MethodGen constructor and InstructionList.createInvoke(..)

Or is this a performance problem?

Andreas

--
I think, so IAM.

Andreas Schlapbach            schlpbch@kde.org
http://www.iam.unibe.ch/~schlpbch


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>