haco20292 / dex2jar

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

I found some problem on dex2jar #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I decomplied my program, and compared my source with code decomplied by 
dex2jar,there were some problem,for example:
my source:
   if (null != result) {
    if (0 == result.b) {
     mHeadView.setText(listEmpty);
    } else {
     ItemSearch is = result.a;
     if (null != is) {
      mItemList = is.getItems();
     }
     if ((null != mItemList) && (0 < mItemList.size())) {
      mListView.removeHeaderView(mHeadView);
     } else {
      mHeadView.setText(loadFailed);
     }
    }
   } else {
    mHeadView.setText(loadFailed);
   }
   notifyDataSetChanged();
  }
code decomplied by dex2jar:
   if (paramTwoTuples != null)
    if (0L == ((Long) paramTwoTuples.b).longValue())
     mHeadView.setText(str2);
   while (true) {
    notifyDataSetChanged();
    return;
    ItemSearch localItemSearch = (ItemSearch) paramTwoTuples.a;
    if (localItemSearch != null)
     mItemList = localItemSearch.getItems();
    if ((mItemList != null) && (mItemList.size() > 0)) {
     mListView.removeHeaderView(mHeadView);
     continue;
    }
    mHeadView.setText(str1);
    continue;
    mHeadView.setText(str1);
   }
check those code,dex2jar would had some bugger on if...else statement.

Original issue reported on code.google.com by leeivan2...@gmail.com on 14 Nov 2011 at 6:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
thanks you response me.
would you mean that I would solve this problem by some tools other than Jd-gui?
please tell me this tool's name. 

Original comment by leeivan2...@gmail.com on 15 Nov 2011 at 10:21