Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902621

Asmtools does not print source line even if -sl option is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • asm_tools_7.0
    • asm_tools_5.0, asm_tools_6.0, asm_tools_7.0
    • tools
    • None
    • b06

      jdis -sl CAST.class

      prints:

      public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
      stack 3 locals 3
      {
      // null
      new class java/lang/Integer;
      dup;
      iconst_1;
      invokespecial Method java/lang/Integer."<init>":"(I)V";
      astore_2;
      // null
      iconst_0;
      ireturn;
      }

      expected:

      public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
      stack 3 locals 3
      {
      // Number z = (@Advanced(s = "test", i = 321) Integer)new Integer(1);
      new class java/lang/Integer;
      dup;
      iconst_1;
      invokespecial Method java/lang/Integer."<init>":"(I)V";
      astore_2;
      // return 0/*STATUS_PASSED*/;
      iconst_0;
      ireturn;
      }

            lkuskov Leonid Kuskov
            lkuskov Leonid Kuskov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: