Skip to content

use jd-gui 1.4.0 Decompile a class, but one of the methods is displayed as a byte code #86

Description

@oicq1699

use jd-gui 0.3.6 decompile source code:

  public boolean initServer()
  {
    boolean result = false;
    initServerLock.lock();
    try
    {
      if (systemStatus.getStatus() == 0) {
        result = true;
      }
      result = initServer(true);
    }
    finally
    {
      initServerLock.unlock();
    }
    return result;
  }

use jd-gui 1.4.0 decompile source code:

/* Error */
  public boolean initServer()
  {
    // Byte code:
    //   0: iconst_0
    //   1: istore_1
    //   2: getstatic 60    gnnt/MEBS/timebargain/server/Server:initServerLock  Ljava/util/concurrent/locks/ReentrantLock;
    //   5: invokevirtual 485   java/util/concurrent/locks/ReentrantLock:lock   ()V
    //   8: getstatic 100   gnnt/MEBS/timebargain/server/Server:systemStatus    Lgnnt/MEBS/timebargain/server/model/SystemStatus;
    //   11: invokevirtual 182  gnnt/MEBS/timebargain/server/model/SystemStatus:getStatus   ()I
    //   14: ifne +5 -> 19
    //   17: iconst_1
    //   18: istore_1
    //   19: aload_0
    //   20: iconst_1
    //   21: invokevirtual 488  gnnt/MEBS/timebargain/server/Server:initServer  (Z)Z
    //   24: istore_1
    //   25: goto +12 -> 37
    //   28: astore_2
    //   29: getstatic 60   gnnt/MEBS/timebargain/server/Server:initServerLock  Ljava/util/concurrent/locks/ReentrantLock;
    //   32: invokevirtual 491  java/util/concurrent/locks/ReentrantLock:unlock ()V
    //   35: aload_2
    //   36: athrow
    //   37: getstatic 60   gnnt/MEBS/timebargain/server/Server:initServerLock  Ljava/util/concurrent/locks/ReentrantLock;
    //   40: invokevirtual 491  java/util/concurrent/locks/ReentrantLock:unlock ()V
    //   43: iload_1
    //   44: ireturn
    // Line number table:
    //   Java source line #490  -> byte code offset #0
    //   Java source line #491  -> byte code offset #2
    //   Java source line #494  -> byte code offset #8
    //   Java source line #495  -> byte code offset #17
    //   Java source line #497  -> byte code offset #19
    //   Java source line #498  -> byte code offset #28
    //   Java source line #499  -> byte code offset #29
    //   Java source line #500  -> byte code offset #35
    //   Java source line #499  -> byte code offset #37
    //   Java source line #501  -> byte code offset #43
    // Local variable table:
    //   start  length  slot    name    signature
    //   0  45  0   this    Server
    //   1  43  1   result  boolean
    //   28 8   2   localObject Object
    // Exception table:
    //   from   to  target  type
    //   8  28  28  finally
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions