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

Regression test tools/javap/MethodParameters.java fails in 8u20 nightly build

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b05
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Testsuite name: Regression
        Test name: tools/javap/MethodParameters.java
        JDK tested: 8u20 nightly build http://aurora-ds2.us.oracle.com:9503/scanas411.us.oracle.com/export/java-re/build/re3/nightlyws/jdk8u-dev/b01_2014-02-11-1901_1929/ws-b01_2014-02-11-1901_1929/build/linux-amd64/j2sdk-image
        OS tested: Linux x64, Solaris x64

        It is a regression.
        Test passes against 8b126 and 8u5b08 and fails againt 8u20 nightly.

        LOG:

        ----------System.out:(80/2132)----------
        Run javap
        Classfile /export/local/aurora/sandbox/results/workDir/scratch/methodparameters/Foo.class
          Last modified Feb 11, 2014; size 387 bytes
          MD5 checksum 6b19686fdd66ef96b43538b8fcd00e25
          Compiled from "Foo.java"
        public class Foo
          SourceFile: "Foo.java"
          minor version: 0
          major version: 52
          flags: ACC_PUBLIC, ACC_SUPER
        Constant pool:
           #1 = Methodref #3.#18 // java/lang/Object."<init>":()V
           #2 = Class #19 // Foo
           #3 = Class #20 // java/lang/Object
           #4 = Utf8 <init>
           #5 = Utf8 ()V
           #6 = Utf8 Code
           #7 = Utf8 LineNumberTable
           #8 = Utf8 (I)V
           #9 = Utf8 MethodParameters
          #10 = Utf8 i
          #11 = Utf8 foo0
          #12 = Utf8 foo2
          #13 = Utf8 (II)V
          #14 = Utf8 j
          #15 = Utf8 k
          #16 = Utf8 SourceFile
          #17 = Utf8 Foo.java
          #18 = NameAndType #4:#5 // "<init>":()V
          #19 = Utf8 Foo
          #20 = Utf8 java/lang/Object
        {
          Foo();
            descriptor: ()V
            flags:
            Code:
              stack=1, locals=1, args_size=1
                 0: aload_0
                 1: invokespecial #1 // Method java/lang/Object."<init>":()V
                 4: return
              LineNumberTable:
                line 2: 0

          Foo(int);
            descriptor: (I)V
            flags:
            Code:
              stack=1, locals=2, args_size=2
                 0: aload_0
                 1: invokespecial #1 // Method java/lang/Object."<init>":()V
                 4: return
              LineNumberTable:
                line 3: 0
            MethodParameters:
              Name Flags
              i

          void foo0();
            descriptor: ()V
            flags:
            Code:
              stack=0, locals=1, args_size=1
                 0: return
              LineNumberTable:
                line 4: 0

          void foo2(int, int);
            descriptor: (II)V
            flags:
            Code:
              stack=0, locals=3, args_size=3
                 0: return
              LineNumberTable:
                line 5: 0
            MethodParameters:
              Name Flags
              j
              k
        }

        ----------System.err:(381/7663)----------
        compile: [-parameters, -d, methodparameters, methodparameters/Foo.java]
        Error: Bad output for zero-parameter constructor. Expected
         Foo();
         descriptor: ()V
         flags:
         Code:
         stack=1, locals=1, args_size=1
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 2: 0
        but got
        Classfile /export/local/aurora/sandbox/results/workDir/scratch/methodparameters/Foo.class
         Last modified Feb 11, 2014; size 387 bytes
         MD5 checksum 6b19686fdd66ef96b43538b8fcd00e25
         Compiled from "Foo.java"
        public class Foo
         SourceFile: "Foo.java"
         minor version: 0
         major version: 52
         flags: ACC_PUBLIC, ACC_SUPER
        Constant pool:
         #1 = Methodref #3.#18 // java/lang/Object."<init>":()V
         #2 = Class #19 // Foo
         #3 = Class #20 // java/lang/Object
         #4 = Utf8 <init>
         #5 = Utf8 ()V
         #6 = Utf8 Code
         #7 = Utf8 LineNumberTable
         #8 = Utf8 (I)V
         #9 = Utf8 MethodParameters
         #10 = Utf8 i
         #11 = Utf8 foo0
         #12 = Utf8 foo2
         #13 = Utf8 (II)V
         #14 = Utf8 j
         #15 = Utf8 k
         #16 = Utf8 SourceFile
         #17 = Utf8 Foo.java
         #18 = NameAndType #4:#5 // "<init>":()V
         #19 = Utf8 Foo
         #20 = Utf8 java/lang/Object
        {
         Foo();
         descriptor: ()V
         flags:
         Code:
         stack=1, locals=1, args_size=1
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 2: 0

         Foo(int);
         descriptor: (I)V
         flags:
         Code:
         stack=1, locals=2, args_size=2
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 3: 0
         MethodParameters:
         Name Flags
         i

         void foo0();
         descriptor: ()V
         flags:
         Code:
         stack=0, locals=1, args_size=1
         0: return
         LineNumberTable:
         line 4: 0

         void foo2(int, int);
         descriptor: (II)V
         flags:
         Code:
         stack=0, locals=3, args_size=3
         0: return
         LineNumberTable:
         line 5: 0
         MethodParameters:
         Name Flags
         j
         k
        }

        Error: Bad output for one-parameter constructor. Expected
         Foo(int);
         descriptor: (I)V
         flags:
         Code:
         stack=1, locals=2, args_size=2
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 3: 0
         MethodParameters:
         Name Flags
         i
        but got
        Classfile /export/local/aurora/sandbox/results/workDir/scratch/methodparameters/Foo.class
         Last modified Feb 11, 2014; size 387 bytes
         MD5 checksum 6b19686fdd66ef96b43538b8fcd00e25
         Compiled from "Foo.java"
        public class Foo
         SourceFile: "Foo.java"
         minor version: 0
         major version: 52
         flags: ACC_PUBLIC, ACC_SUPER
        Constant pool:
         #1 = Methodref #3.#18 // java/lang/Object."<init>":()V
         #2 = Class #19 // Foo
         #3 = Class #20 // java/lang/Object
         #4 = Utf8 <init>
         #5 = Utf8 ()V
         #6 = Utf8 Code
         #7 = Utf8 LineNumberTable
         #8 = Utf8 (I)V
         #9 = Utf8 MethodParameters
         #10 = Utf8 i
         #11 = Utf8 foo0
         #12 = Utf8 foo2
         #13 = Utf8 (II)V
         #14 = Utf8 j
         #15 = Utf8 k
         #16 = Utf8 SourceFile
         #17 = Utf8 Foo.java
         #18 = NameAndType #4:#5 // "<init>":()V
         #19 = Utf8 Foo
         #20 = Utf8 java/lang/Object
        {
         Foo();
         descriptor: ()V
         flags:
         Code:
         stack=1, locals=1, args_size=1
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 2: 0

         Foo(int);
         descriptor: (I)V
         flags:
         Code:
         stack=1, locals=2, args_size=2
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 3: 0
         MethodParameters:
         Name Flags
         i

         void foo0();
         descriptor: ()V
         flags:
         Code:
         stack=0, locals=1, args_size=1
         0: return
         LineNumberTable:
         line 4: 0

         void foo2(int, int);
         descriptor: (II)V
         flags:
         Code:
         stack=0, locals=3, args_size=3
         0: return
         LineNumberTable:
         line 5: 0
         MethodParameters:
         Name Flags
         j
         k
        }

        Error: Bad output for zero-parameter method. Expected
         void foo0();
         descriptor: ()V
         flags:
         Code:
         stack=0, locals=1, args_size=1
         0: return
         LineNumberTable:
         line 4: 0
        but got
        Classfile /export/local/aurora/sandbox/results/workDir/scratch/methodparameters/Foo.class
         Last modified Feb 11, 2014; size 387 bytes
         MD5 checksum 6b19686fdd66ef96b43538b8fcd00e25
         Compiled from "Foo.java"
        public class Foo
         SourceFile: "Foo.java"
         minor version: 0
         major version: 52
         flags: ACC_PUBLIC, ACC_SUPER
        Constant pool:
         #1 = Methodref #3.#18 // java/lang/Object."<init>":()V
         #2 = Class #19 // Foo
         #3 = Class #20 // java/lang/Object
         #4 = Utf8 <init>
         #5 = Utf8 ()V
         #6 = Utf8 Code
         #7 = Utf8 LineNumberTable
         #8 = Utf8 (I)V
         #9 = Utf8 MethodParameters
         #10 = Utf8 i
         #11 = Utf8 foo0
         #12 = Utf8 foo2
         #13 = Utf8 (II)V
         #14 = Utf8 j
         #15 = Utf8 k
         #16 = Utf8 SourceFile
         #17 = Utf8 Foo.java
         #18 = NameAndType #4:#5 // "<init>":()V
         #19 = Utf8 Foo
         #20 = Utf8 java/lang/Object
        {
         Foo();
         descriptor: ()V
         flags:
         Code:
         stack=1, locals=1, args_size=1
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 2: 0

         Foo(int);
         descriptor: (I)V
         flags:
         Code:
         stack=1, locals=2, args_size=2
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 3: 0
         MethodParameters:
         Name Flags
         i

         void foo0();
         descriptor: ()V
         flags:
         Code:
         stack=0, locals=1, args_size=1
         0: return
         LineNumberTable:
         line 4: 0

         void foo2(int, int);
         descriptor: (II)V
         flags:
         Code:
         stack=0, locals=3, args_size=3
         0: return
         LineNumberTable:
         line 5: 0
         MethodParameters:
         Name Flags
         j
         k
        }

        Error: Bad output for two-parameter method Expected
         void foo2(int, int);
         descriptor: (II)V
         flags:
         Code:
         stack=0, locals=3, args_size=3
         0: return
         LineNumberTable:
         line 5: 0
         MethodParameters:
         Name Flags
         j
         k
        but got
        Classfile /export/local/aurora/sandbox/results/workDir/scratch/methodparameters/Foo.class
         Last modified Feb 11, 2014; size 387 bytes
         MD5 checksum 6b19686fdd66ef96b43538b8fcd00e25
         Compiled from "Foo.java"
        public class Foo
         SourceFile: "Foo.java"
         minor version: 0
         major version: 52
         flags: ACC_PUBLIC, ACC_SUPER
        Constant pool:
         #1 = Methodref #3.#18 // java/lang/Object."<init>":()V
         #2 = Class #19 // Foo
         #3 = Class #20 // java/lang/Object
         #4 = Utf8 <init>
         #5 = Utf8 ()V
         #6 = Utf8 Code
         #7 = Utf8 LineNumberTable
         #8 = Utf8 (I)V
         #9 = Utf8 MethodParameters
         #10 = Utf8 i
         #11 = Utf8 foo0
         #12 = Utf8 foo2
         #13 = Utf8 (II)V
         #14 = Utf8 j
         #15 = Utf8 k
         #16 = Utf8 SourceFile
         #17 = Utf8 Foo.java
         #18 = NameAndType #4:#5 // "<init>":()V
         #19 = Utf8 Foo
         #20 = Utf8 java/lang/Object
        {
         Foo();
         descriptor: ()V
         flags:
         Code:
         stack=1, locals=1, args_size=1
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 2: 0

         Foo(int);
         descriptor: (I)V
         flags:
         Code:
         stack=1, locals=2, args_size=2
         0: aload_0
         1: invokespecial #1 // Method java/lang/Object."<init>":()V
         4: return
         LineNumberTable:
         line 3: 0
         MethodParameters:
         Name Flags
         i

         void foo0();
         descriptor: ()V
         flags:
         Code:
         stack=0, locals=1, args_size=1
         0: return
         LineNumberTable:
         line 4: 0

         void foo2(int, int);
         descriptor: (II)V
         flags:
         Code:
         stack=0, locals=3, args_size=3
         0: return
         LineNumberTable:
         line 5: 0
         MethodParameters:
         Name Flags
         j
         k
        }

        java.lang.Exception: MethodParameters test failed with 4 errors
        at MethodParameters.run(MethodParameters.java:128)
        at MethodParameters.main(MethodParameters.java:99)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:754)
        at java.lang.Thread.run(Thread.java:744)

        JavaTest Message: Test threw exception: java.lang.Exception
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.Exception: MethodParameters test failed with 4 errors


        test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: MethodParameters test failed with 4 errors

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kizune Alexander Zuev
                Reporter:
                kshefov Konstantin Shefov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: