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

    • b97
    • 8
    • b49
    • Not verified

        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

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

              hseigel Harold Seigel (Inactive)
              ygaevsky Yuri Gaevsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: