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

Asmtools: jdis prints BootstrapMethod attribute if detailed output is off

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • asm_tools_8.0
    • asm_tools_8.0
    • tools
    • None
    • b02
    • b04

      jdis Test03.class
      public super class Test03 version 65:0
      {
        public static Field bField:I;

        public Method "<init>":"()V"
          stack 1 locals 1
        {
               aload_0;
               invokespecial Method java/lang/Object."<init>":"()V";
               return;
        }
        public static Method run:"()Z"
          stack 2 locals 1
        {
               sipush 139;
               putstatic Field bField:"I";
               getstatic Field bField:"I";
               istore_0;
               iload_0;
               sipush 139;
               if_icmpeq L31;
               getstatic Field java/lang/System.out:"Ljava/io/PrintStream;";
               iload_0;
               invokedynamic InvokeDynamic REF_invokeStatic:Method java/lang/invoke/StringConcatFactory.makeConcatWithConstants:
                                 "(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;":
                                 makeConcatWithConstants:"(I)Ljava/lang/String;" {
                                   String "instead of . got \u0001"
                                 };
               invokevirtual Method java/io/PrintStream.println:"(Ljava/lang/String;)V";
               iconst_0;
               ireturn;
        L31: stack_frame_type append;
               locals_map int;
               iconst_1;
               ireturn;
        }
        public static varargs Method main:"([Ljava/lang/String;)V"
          stack 1 locals 1
        {
               invokestatic Method Test01.run:"()Z";
               pop;
               return;
        }

        SourceFile "Test03.java";

        public static final InnerClass Lookup = class java/lang/invoke/MethodHandles$Lookup of class java/lang/invoke/MethodHandles;

        BootstrapMethod #45 #43;
      } // end Class Test03 compiled from "Test03.java"

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

              Created:
              Updated:
              Resolved: