haco20292 / dex2jar

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

String的append操作翻译有问题 #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
smali 如下
……
    new-instance v5, Ljava/lang/StringBuilder;
    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
    sget-object v6, Lorg/……/……/PublicVariables;->MyArray:[Ljava/lang/String;
    aget-object v6, v6, v3
    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    move-result-object v5
……

dex2jar 翻译结果处理成了StringBuilder
……
      String str7 = String.valueOf(str1);
      StringBuilder localStringBuilder3 = new StringBuilder(str7);
      String str8 = PublicVariables.MyArray[k];
……

Original issue reported on code.google.com by ax...@jingking.net on 11 Apr 2011 at 9:57