<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body><div class="auto-created-dir-div" dir="auto" style="unicode-bidi: embed;"><style>p{margin:0}</style><p>Hi.</p><p><br></p><p># ClassPrinter</p><p><br></p><p>ClassPrinter prints lookupswitch like tableswitch thus losing information (the values switched on) whereas the reverse would not.</p><p><br></p><p># Duplicate and ambiguous switch cases.</p><p><br></p><p>Lookupswitch throws an exception but where depends on the ClassFile options specified but tableswitch silently ignores it by dropping a switch case.</p><p><br></p><p># SequencedSet</p><p><br></p><p>ClassFile improves on ASM by using a List<SwitchCase> parameter rather than two arrays but would not a SequencedSet<SwitchCase> be better as the switch cases would be prechecked.</p><p><br></p><p># Switch</p><p><br></p><p>Normally the user would just prefer the shortest code switch, so could there be a switch(Label default, SequencedSet<SwitchCase> cases) method.</p><p><br></p><p># Dead Code</p><p><br></p><p>I was surprised that the default was to change deadcode to nop, throw. Also there is no dead code option to faill with an exception.</p><p><br></p><p>Cheers </p><p>David. </p><p><br></p></div></body></html>