Skip to content

Public method decompile gives error #137

@soumali

Description

@soumali

Hi @emmanue1

I am using jd-gui.jar v 1.4.0. Getting following error while compiling A class. The class is compiled in jdk 1.6 (major: 50). Post decompilation, using jd-gui-1.4.0.jar, it gives following output for a method:

/* Error */
public String getXXX()
throws Exception
{
// Byte code:
// 0: ldc 122
// 2: astore_1
// 3: aload_0
// 4: getfield 58 abc/XAdapter:sfddmAPI Labc;
// 7: ifnonnull +13 -> 20
// 10: new 75 java/lang/Exception
// 13: dup
// 14: ldc 76
// 16: invokespecial 77 java/lang/Exception: (Ljava/lang/String;)V
// 19: athrow
// 20: aload_0
// 21: getY:58 X/XAdapter:abcAPI LabcAPI;
// 24: aload_1
// 25: iconst_1
// 26: anewarray 123 java/lang/Object
// 29: dup
// 30: iconst_0
// 31: aload_0
// 32: getX 4 X/XAdapter:asdfsdId Ljava/math/BigDecimal;
// 35: aastore
// 36: invokevirtual 124 Y/sdfdsf:executeQuery (Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/ResultSet;
// 39: astore_2
// 40: aload_2
// 41: invokeinterface 125 1 0
// 46: ifeq +12 -> 58
// 49: aload_2
// 50: ldc 126
// 52: invokeinterface 127 2 0
// 57: areturn
// 58: ldc 78
// 60: areturn
// 61: astore_2
// 62: aload_0.......
..............................
.............................
}

Other methods of the same class gets decompiled successfully.

Same case with jd-gui-1.4.0.exe on windows. And jd-gui-1.1.0.jar & jd-gui-1.0.0.jar gives same error too.

Also, do you have any plans to come out with the command line version of jd-core, in such cases where we would like to use it without the GUI.

Also, kindly let me know if I can donate to this project. I think its an awesome project. Al the best !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions