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

JVM does not prohibit invokespecial in c.f.v 51.0 that invokes default interface method in c.f.v. 52.0

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b97
    • Introduced In Version:
      8
    • Resolved In Build:
      b49
    • Verification:
      Not verified

      Backports

        Description

        Please use attached test sources to reproduce such situation.

        $ /java/re/jdk/8/promoted/ea/b94/binaries/solaris-sparc/bin/java -jar /java/re/asmtools/5.0/promoted/ea/b02/binaries/asmtools-5.0/lib/asmtools.jar jasm instr_01303m10p.jasm instr_01303m11n.jasm -d .
        instr_01303m10p.jasm:13: Warning: interface method must be abstract public only " *****public *****".
        public Method m:"()V"
                      ^
        instr_01303m10p.jasm:52: Warning: Wrong tag: Method expected.
                        invokespecial InterfaceMethod m:"()V";
                                                           ^
        instr_01303m11n.jasm:13: Warning: interface method must be abstract public only " *****public *****".
        public Method m:"()V"
                      ^
        instr_01303m11n.jasm:52: Warning: Wrong tag: Method expected.
                        invokespecial InterfaceMethod m:"()V";
                                                           ^
        4 warnings

        $ /java/re/jdk/8/promoted/ea/b94/binaries/solaris-sparc/bin/javac -g:none instr_01303m1.java -d .
        Note: instr_01303m1.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.

        $ /java/re/jdk/8/promoted/ea/b94/binaries/solaris-sparc/bin/java -cp . javasoft.sqe.tests.vm.classfmt.ins.instr_013.instr_01303m1.instr_01303m1
        Failed to reject invalid class instr_01303m11n

          Attachments

          1. instr_01303m1.java
            4 kB
            Yuri Gaevsky
          2. instr_01303m10p.jasm
            1 kB
            Yuri Gaevsky
          3. instr_01303m11n.jasm
            1 kB
            Yuri Gaevsky
          4. instr_01304m1.java
            4 kB
            Yuri Gaevsky
          5. instr_01304m10p.jasm
            0.9 kB
            Yuri Gaevsky
          6. instr_01304m11n.jasm
            0.9 kB
            Yuri Gaevsky

            Issue Links

              Activity

                People

                Assignee:
                hseigel Harold Seigel
                Reporter:
                ygaevsky Yuri Gaevsky
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: