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

jdis: incorrectly prints the NameAndType pair in the ConstantPool for the -nc option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • asm_tools_8.0
    • tools

      jdis -g -nc R.class
      public super class #7 version 66:0
      {
        const #1 = Method #2.#3;
        const #2 = class #4;
        const #3 = NameAndType #5.#6;
        const #4 = Utf8 "java/lang/Object";
        const #5 = Utf8 "<init>";
        const #6 = Utf8 "()V";
        const #7 = class #8;
        const #8 = Utf8 "R";
        const #9 = Utf8 "Code";
        const #10 = Utf8 "LineNumberTable";
        const #11 = Utf8 "m";
        const #12 = Utf8 "erz_R.jasm";
        const #13 = Utf8 "SourceFile";

        public Method #5:#6
          stack 1 locals 1
        {
           0: aload_0;
           1: invokespecial #1;
           4: return;
        }
        private static Method #11:#6
          stack 0 locals 0
        {
           0: return;
        }

        SourceFile #12;
      }

      jasm R.class.jasm
      R.class.jasm (5:28) Error: <:> token expected
        const #3 = NameAndType #5.#6;
                                                       ^
      1 error(s)

      expected:
      const #3 = NameAndType #5:#6;

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

              Created:
              Updated:
              Resolved: