"Adam Warner" wrote...
> A bytecode disassembly shows both methods conclude with a "return"
> mnemonic, which returns void from each method. What is the reason Sun's
[quoted text clipped - 5 lines]
> public void java.lang.VerifyError(java.lang.String);
> }
[snip]
> Could this be a bug in Sun's disassembler output or have I overlooked
> something?
You have overlooked that "constructors" are not "methods" in that sense.
// Bjorn A
Adam Warner - 03 Apr 2004 12:44 GMT
Hi Bjorn Abelli,
>> Could this be a bug in Sun's disassembler output or have I overlooked
>> something?
>
> You have overlooked that "constructors" are not "methods" in that sense.
Thanks Bjorn. I had misunderstood that these were constructors (object
builders) rather than methods. As I now understand it constructors build
objects of the class: As they have the same name as the class and the
class is the type, additionally listing the type of the object would be
redundant.
Regards,
Adam