|
From: Gilbert C. H. II <gc...@mi...> - 2001-08-25 17:03:40
|
At 04:34 PM 8/24/01 -0400, "Todd L. Miller" <tm...@ha...> wrote:
>> Also, the following statement in the Java programming language doesn't
>> evaluate properly:
>
> Actually, GCHII, you forgot break; statements at the end of each
>case. :)
Thanks, but this code works as written in other virtual machines. A break
statement is not needed after a return statement; it would be redundent.
public String getBuild() {
int id = getBuildID();
switch( id ) {
case 1 :
/return/ "host";
case 2 :
/return/ "i386";
default :
/return/ null;
}
}
I'm not sure what the Code attribute looks like. I'll disassemble it.
----
That reminds me. I build a GUI front-end for the javap tool. I wrote it in
the Java programming language. It has a Setup panel to select options and a
Print panel to run the javap tool. It is part of the Smart API
Utilities...I need to distribute it!
|