java-decompiler / jd-gui

A standalone Java Decompiler GUI
GNU General Public License v3.0
14.09k stars 2.4k forks source link

Decompiler label name lossed #385

Open ly269nva opened 2 years ago

ly269nva commented 2 years ago

i decompiler class but missing some message: i named a label name for foreach, but lose that name after decompiler . example:

labelname : for(int i=0;i<10;i++){
       switch(i){
              case 1:
                      System.out.println("i="+i);
                      break ;
              case 5:
                      System.out.println(" exit for each");
                      break labelname ;  // **note this has labelname**
       }
  }

after decompiler :

   for(int i=0;i<10;i++){
       switch(i){
              case 1:
                      System.out.println("i="+i);
                      break ;
              case 5:
                      System.out.println(" exit for each");
                      break ;  // **note this hasn't labelname**
       }
  }

Can this problem be solved?