2004-11-21 | Paul Boddie | file changeset files shortlog | Fixed ldc* implementations. Added external name identification so that such names can be imported into the namespace where the code is run. Introduced more sophisticated resolution of class names where they are used; for example in the new and *static implementations. |
paul@63 | 1 | public class SwitchTest { |
paul@63 | 2 | |
paul@63 | 3 | public int test(int x) { |
paul@63 | 4 | switch (x) { |
paul@63 | 5 | case 0: |
paul@63 | 6 | |
paul@63 | 7 | case 1: |
paul@63 | 8 | x = x + 10; |
paul@63 | 9 | break; |
paul@63 | 10 | |
paul@63 | 11 | case 2: |
paul@63 | 12 | x = x + 20; |
paul@63 | 13 | break; |
paul@63 | 14 | |
paul@63 | 15 | default: |
paul@63 | 16 | break; |
paul@63 | 17 | } |
paul@63 | 18 | |
paul@63 | 19 | return x; |
paul@63 | 20 | } |
paul@63 | 21 | } |