3 Replies Latest reply on Aug 26, 2005 10:48 AM by chiba

    How to get the value in switch case ?

    ericmacau

      Hello,

      How can I use Javassist to get the case value in switch ?

      For example:

      switch(a) {
       case 1:
       case 2:
       do12();
       break;
      
       case 3:
       do3();
       break;
      
       case 4:
       do4();
       break;
      
       default:
       System.out.println("Nothing to do!");
      }


      As in the above statements, how can I get the values of thoses cases: 1, 2, 3, and 4 ???


      Eric