Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6269379

JDWP agent needs to add can_maintain_original_method_order capability

XMLWordPrintable

    • b39
    • generic
    • generic

      The following JDWP test fails since the removal of JVMDI:

      nsk/jdwp/ReferenceType/Methods/methods001



      #!C:/mks/mksnt/sh.exe

      RAS_OPTIONS=
      SHELL=C:/mks/mksnt/sh.exe
      CLASSPATH="Y:/nightly/mantis/DTWS/exec1/JDWP_QUICKLOOK-11-NIGHTLY-Serv_Baseline-ClientVM-comp-Win-2005-05-11-22-19-09-0824/work/run2/Administrator.NT.x86/methods001;Y:/nightly/mantis/DTWS/suites/JDWP_QUICKLOOK/testbase/bin/classes;Y:/nightly/mantis/JDK/service_hs_baseline/jdk1.6/windows-i586/lib/tools.jar"
      SystemRoot=C:/WINNT
      WINDIR=C:/WINNT
      PATH="Y:/nightly/mantis/JDK/service_hs_baseline/jdk1.6/windows-i586/bin;Y:/nightly/mantis/DTWS/suites/JDWP_QUICKLOOK/testbase/src/nsk/share/lib/wintel;Y:/nightly/mantis/JDK/service_hs_baseline/jdk1.6/windows-i586/jre/bin/client;Y:/nightly/mantis/JDK/service_hs_baseline/jdk1.6/windows-i586/jre/bin;"

      while [ $# -gt 0 ];
      do
        if [ $1 = "-jdk" ]; then
      shift 1
      PATH=${1}/bin;${PATH}
      shift 1
        fi
      done

      export RAS_OPTIONS
      export SHELL
      export CLASSPATH
      export SystemRoot
      export WINDIR
      export PATH

      #annotate TEST javaopt=-client -Xcomp -XX:-ShowMessageBoxOnError
      Y:/nightly/mantis/JDK/service_hs_baseline/jdk1.6/windows-i586/bin/java -client -Xcomp -XX:-ShowMessageBoxOnError -DHANGINGJAVA3924 -Dsun.jvm.hotspot.runtime.VM.disableVersionCheck=1 nsk.jdwp.ReferenceType.Methods.methods001 -arch=wintel -waittime=2 -debugee.vmkind=java -transport.address=dynamic "-debugee.vmkeys=-client -Xcomp -XX:-ShowMessageBoxOnError -DHANGINGJAVA3924"
      ##Exit status of execution step=97
      ##!checkExitCode

      ##>
      ##> WARNING: switching log to verbose mode,
      ##> because error is complained
      ##>
      #Start debugee VM
      #Debugee> Starting java process:
      #"Y:\nightly\mantis\JDK\service_hs_baseline\jdk1.6\windows-i586\jre\bin\java" "-client" "-Xcomp" "-XX:-ShowMessageBoxOnError" "-DHANGINGJAVA3924" "-Xdebug" "-Xrunjdwp:server=n,transport=dt_socket,address=localhost:2646" "nsk.jdwp.ReferenceType.Methods.methods001a" "-arch=wintel" "-waittime=2" "-debugee.vmkind=java" "-transport.address=dynamic" "-debugee.vmkeys=-client -Xcomp -XX:-ShowMessageBoxOnError -DHANGINGJAVA3924" "-pipe.port=2645"
      #Debugee> Establishing JDWP socket connection
      #Debugee> Listening from debugee
      #Waiting for VM_INIT event
      #Querying for IDSizes
      #Resume debugee VM
      #Waiting for command: ready
      #Received command: ready
      #Create command ReferenceType.Methods with ReferenceTypeID: 2
      #Sending command packet:
      #Packet header (11 bytes):
      # 0000 (length) : 0x00000013 (19)
      # 0004 (id) : 0x00000004 (4)
      # 0008 (flags) : 0x00 (0)
      # 0009 (cmd set): 0x02 (2)
      # 000a (command): 0x05 (5)
      #Entire packet (19 bytes):
      # 0000: 00 00 00 13 00 00 00 04 00 02 05 00 00 00 00 00 ................
      # 0010: 00 00 02 ...
      #Packet end
      #Waiting for reply packet
      #Reply packet received:
      #Packet header (11 bytes):
      # 0000 (length) : 0x000001f4 (500)
      # 0004 (id) : 0x00000004 (4)
      # 0008 (flags) : 0x80 (-128)
      # 000a (error) : 0x0000 (0)
      #Entire packet (500 bytes):
      # 0000: 00 00 01 f4 00 00 00 04 80 00 00 00 00 00 0d 10 ................
      # 0010: ce 9b b0 00 00 00 06 3c 69 6e 69 74 3e 00 00 00 .......<init>...
      # 0020: 03 28 29 56 00 00 00 01 10 ce 9b b1 00 00 00 06 .()V............
      # 0030: 3c 69 6e 69 74 3e 00 00 00 04 28 5a 29 56 00 00 <init>....(Z)V..
      # 0040: 00 01 10 ce 9b b2 00 00 00 0a 62 79 74 65 4d 65 ..........byteMe
      # 0050: 74 68 6f 64 00 00 00 04 28 42 29 42 00 00 00 01 thod....(B)B....
      # 0060: 10 ce 9b b3 00 00 00 0d 62 6f 6f 6c 65 61 6e 4d ........booleanM
      # 0070: 65 74 68 6f 64 00 00 00 03 28 29 5a 00 00 00 01 ethod....()Z....
      # 0080: 10 ce 9b b4 00 00 00 0a 63 68 61 72 4d 65 74 68 ........charMeth
      # 0090: 6f 64 00 00 00 04 28 42 29 43 00 00 00 01 10 ce od....(B)C......
      # 00a0: 9b b5 00 00 00 0b 73 68 6f 72 74 4d 65 74 68 6f ......shortMetho
      # 00b0: 64 00 00 00 05 28 53 53 29 53 00 00 00 01 10 ce d....(SS)S......
      # 00c0: 9b b6 00 00 00 09 69 6e 74 4d 65 74 68 6f 64 00 ......intMethod.
      # 00d0: 00 00 05 28 49 53 29 49 00 00 00 01 10 ce 9b b7 ...(IS)I........
      # 00e0: 00 00 00 0a 6c 6f 6e 67 4d 65 74 68 6f 64 00 00 ....longMethod..
      # 00f0: 00 04 28 49 29 4a 00 00 00 01 10 ce 9b b8 00 00 ..(I)J..........
      # 0100: 00 0b 66 6c 6f 61 74 4d 65 74 68 6f 64 00 00 00 ..floatMethod...
      # 0110: 04 28 44 29 46 00 00 00 01 10 ce 9b b9 00 00 00 .(D)F...........
      # 0120: 0c 64 6f 75 62 6c 65 4d 65 74 68 6f 64 00 00 00 .doubleMethod...
      # 0130: 03 28 29 44 00 00 00 01 10 ce 9b ba 00 00 00 0c .()D............
      # 0140: 73 74 72 69 6e 67 4d 65 74 68 6f 64 00 00 00 27 stringMethod...'
      # 0150: 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 (Ljava/lang/Stri
      # 0160: 6e 67 3b 43 29 4c 6a 61 76 61 2f 6c 61 6e 67 2f ng;C)Ljava/lang/
      # 0170: 53 74 72 69 6e 67 3b 00 00 00 01 10 ce 9b bb 00 String;.........
      # 0180: 00 00 0c 6f 62 6a 65 63 74 4d 65 74 68 6f 64 00 ...objectMethod.
      # 0190: 00 00 3a 28 29 4c 6e 73 6b 2f 6a 64 77 70 2f 52 ..:()Lnsk/jdwp/R
      # 01a0: 65 66 65 72 65 6e 63 65 54 79 70 65 2f 4d 65 74 eferenceType/Met
      # 01b0: 68 6f 64 73 2f 6d 65 74 68 6f 64 73 30 30 31 61 hods/methods001a
      # 01c0: 24 54 65 73 74 65 64 43 6c 61 73 73 3b 00 00 00 $TestedClass;...
      # 01d0: 01 10 ce 9b bc 00 00 00 0e 69 6e 74 41 72 72 61 .........intArra
      # 01e0: 79 4d 65 74 68 6f 64 00 00 00 05 28 49 29 5b 49 yMethod....(I)[I
      # 01f0: 00 00 00 01 ....
      #Packet end
      #Checking reply packet header
      #Parsing reply packet:
      # declared: 13
      # method #0
      # methodID: 281975728
      # name: <init>
      # signature: ()V
      # modBits: 0x00000001
      # method #1
      # methodID: 281975729
      # name: <init>
      ## ERROR: Unexpected name of method #1 in the reply packet: <init> (expected: byteMethod)
      # signature: (Z)V
      ## ERROR: Unexpected signature of method #1 in the reply packet: (Z)V (expected: (B)B)
      # modBits: 0x00000001
      # method #2
      # methodID: 281975730
      # name: byteMethod
      ## ERROR: Unexpected name of method #2 in the reply packet: byteMethod (expected: booleanMethod)
      # signature: (B)B
      ## ERROR: Unexpected signature of method #2 in the reply packet: (B)B (expected: ()Z)
      # modBits: 0x00000001
      # method #3
      # methodID: 281975731
      # name: booleanMethod
      ## ERROR: Unexpected name of method #3 in the reply packet: booleanMethod (expected: charMethod)
      # signature: ()Z
      ## ERROR: Unexpected signature of method #3 in the reply packet: ()Z (expected: (B)C)
      # modBits: 0x00000001
      # method #4
      # methodID: 281975732
      # name: charMethod
      ## ERROR: Unexpected name of method #4 in the reply packet: charMethod (expected: shortMethod)
      # signature: (B)C
      ## ERROR: Unexpected signature of method #4 in the reply packet: (B)C (expected: (SS)S)
      # modBits: 0x00000001
      # method #5
      # methodID: 281975733
      # name: shortMethod
      ## ERROR: Unexpected name of method #5 in the reply packet: shortMethod (expected: intMethod)
      # signature: (SS)S
      ## ERROR: Unexpected signature of method #5 in the reply packet: (SS)S (expected: (IS)I)
      # modBits: 0x00000001
      # method #6
      # methodID: 281975734
      # name: intMethod
      ## ERROR: Unexpected name of method #6 in the reply packet: intMethod (expected: longMethod)
      # signature: (IS)I
      ## ERROR: Unexpected signature of method #6 in the reply packet: (IS)I (expected: (I)J)
      # modBits: 0x00000001
      # method #7
      # methodID: 281975735
      # name: longMethod
      ## ERROR: Unexpected name of method #7 in the reply packet: longMethod (expected: floatMethod)
      # signature: (I)J
      ## ERROR: Unexpected signature of method #7 in the reply packet: (I)J (expected: (D)F)
      # modBits: 0x00000001
      # method #8
      # methodID: 281975736
      # name: floatMethod
      ## ERROR: Unexpected name of method #8 in the reply packet: floatMethod (expected: doubleMethod)
      # signature: (D)F
      ## ERROR: Unexpected signature of method #8 in the reply packet: (D)F (expected: ()D)
      # modBits: 0x00000001
      # method #9
      # methodID: 281975737
      # name: doubleMethod
      ## ERROR: Unexpected name of method #9 in the reply packet: doubleMethod (expected: stringMethod)
      # signature: ()D
      ## ERROR: Unexpected signature of method #9 in the reply packet: ()D (expected: (Ljava/lang/String;C)Ljava/lang/String;)
      # modBits: 0x00000001
      # method #10
      # methodID: 281975738
      # name: stringMethod
      ## ERROR: Unexpected name of method #10 in the reply packet: stringMethod (expected: objectMethod)
      # signature: (Ljava/lang/String;C)Ljava/lang/String;
      ## ERROR: Unexpected signature of method #10 in the reply packet: (Ljava/lang/String;C)Ljava/lang/String; (expected: ()Lnsk/jdwp/ReferenceType/Methods/methods001a$TestedClass;)
      # modBits: 0x00000001
      # method #11
      # methodID: 281975739
      # name: objectMethod
      ## ERROR: Unexpected name of method #11 in the reply packet: objectMethod (expected: intArrayMethod)
      # signature: ()Lnsk/jdwp/ReferenceType/Methods/methods001a$TestedClass;
      ## ERROR: Unexpected signature of method #11 in the reply packet: ()Lnsk/jdwp/ReferenceType/Methods/methods001a$TestedClass; (expected: (I)[I)
      # modBits: 0x00000001
      # method #12
      # methodID: 281975740
      # name: intArrayMethod
      ## ERROR: Unexpected name of method #12 in the reply packet: intArrayMethod (expected: <init>)
      # signature: (I)[I
      ## ERROR: Unexpected signature of method #12 in the reply packet: (I)[I (expected: (Z)V)
      # modBits: 0x00000001
      #Reply packet parsed successfully
      #Sending command: quit
      #Waiting for debugee exits
      #Debugee PASSED with exit code: 95
      ## ERROR: TEST FAILED
      #
      #
      ##>
      ##> SUMMARY: Following errors occured
      ##> during test execution:
      ##>
      ## ERROR: Unexpected name of method #1 in the reply packet: <init> (expected: byteMethod)
      ## ERROR: Unexpected signature of method #1 in the reply packet: (Z)V (expected: (B)B)
      ## ERROR: Unexpected name of method #2 in the reply packet: byteMethod (expected: booleanMethod)
      ## ERROR: Unexpected signature of method #2 in the reply packet: (B)B (expected: ()Z)
      ## ERROR: Unexpected name of method #3 in the reply packet: booleanMethod (expected: charMethod)
      ## ERROR: Unexpected signature of method #3 in the reply packet: ()Z (expected: (B)C)
      ## ERROR: Unexpected name of method #4 in the reply packet: charMethod (expected: shortMethod)
      ## ERROR: Unexpected signature of method #4 in the reply packet: (B)C (expected: (SS)S)
      ## ERROR: Unexpected name of method #5 in the reply packet: shortMethod (expected: intMethod)
      ## ERROR: Unexpected signature of method #5 in the reply packet: (SS)S (expected: (IS)I)
      ## ERROR: Unexpected name of method #6 in the reply packet: intMethod (expected: longMethod)
      ## ERROR: Unexpected signature of method #6 in the reply packet: (IS)I (expected: (I)J)
      ## ERROR: Unexpected name of method #7 in the reply packet: longMethod (expected: floatMethod)
      ## ERROR: Unexpected signature of method #7 in the reply packet: (I)J (expected: (D)F)
      ## ERROR: Unexpected name of method #8 in the reply packet: floatMethod (expected: doubleMethod)
      ## ERROR: Unexpected signature of method #8 in the reply packet: (D)F (expected: ()D)
      ## ERROR: Unexpected name of method #9 in the reply packet: doubleMethod (expected: stringMethod)
      ## ERROR: Unexpected signature of method #9 in the reply packet: ()D (expected: (Ljava/lang/String;C)Ljava/lang/String;)
      ## ERROR: Unexpected name of method #10 in the reply packet: stringMethod (expected: objectMethod)
      ## ERROR: Unexpected signature of method #10 in the reply packet: (Ljava/lang/String;C)Ljava/lang/String; (expected: ()Lnsk/jdwp/ReferenceType/Methods/methods001a$TestedClass;)
      ## ERROR: Unexpected name of method #11 in the reply packet: objectMethod (expected: intArrayMethod)
      ## ERROR: Unexpected signature of method #11 in the reply packet: ()Lnsk/jdwp/ReferenceType/Methods/methods001a$TestedClass; (expected: (I)[I)
      ## ERROR: Unexpected name of method #12 in the reply packet: intArrayMethod (expected: <init>)
      ## ERROR: Unexpected signature of method #12 in the reply packet: (I)[I (expected: (Z)V)
      ## ERROR: TEST F
      ###@###.### 2005-05-12 14:05:33 GMT

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: