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

VM fails on 'empty' interface public <init>()V method with VerifyError

    Details

    • Subcomponent:
    • Resolved In Build:
      b85
    • Verification:
      Verified

      Backports

        Description

        According to https://bugs.openjdk.java.net/browse/JDK-8122940 interfaces shouldn't have instance init methods, but it fails with "java.lang.VerifyError: Constructor must call super() or this() before return" on simple interface v52 <init>()V method which consists of one 'return' instruction. It appears for public/private non-abstract non-static non-native methods.


        Example is in attachment, was found on jdk9b78, tests are under development, tck_red label will be added after test completion.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hseigel Harold Seigel
                  Reporter:
                  asolodkaya Anastasiya Solodkaya (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: