javaclass

tests/SwitchTest.java

131:b220be071851
2005-01-18 Paul Boddie Fixed signed constant loading in bipush and sipush.
     1 public class SwitchTest {     2      3     public int test(int x) {     4         switch (x) {     5             case 0:     6      7             case 1:     8             x = x + 10;     9             break;    10     11             case 2:    12             x = x + 20;    13             break;    14     15             default:    16             break;    17         }    18     19         return x;    20     }    21 }