ChairmanC / dex2jar

Automatically exported from code.google.com/p/dex2jar
0 stars 0 forks source link

Wrong decompilation results #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
System: Win7/x64, dex2jar version 0.0.7.11

Original code:
    public boolean onOptionsItemSelected(MenuItem item){
        switch (item.getItemId()) {
        case 0:
            finish();
            break;
        case 1:
            InitGps();
            break;          
        case 2:
            // experimental
            textView.append("Experimental (no effect)\n");
            break;
        }
        return false;
    }

Decompiled code (JD-GUI) after dex2jar:
  public boolean onOptionsItemSelected(MenuItem paramMenuItem)
  {
    switch (paramMenuItem.getItemId())
    {
    default:
    case 0:
    case 1:
    case 2:
    }
    while (true)
    {
      return false;
      finish();
      continue;
      InitGps();
      continue;
      this.textView.append("Experimental (no effect)\n");
    }
  }

Original issue reported on code.google.com by infowolp...@googlemail.com on 26 Aug 2011 at 9:54