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

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

XMLWordPrintable

    • b85
    • Verified

        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.

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

                Created:
                Updated:
                Resolved: