Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6959

java.lang.VerifyError: Bad <init> method call from inside of a branch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.3.4
    • None
    • None
    • None

    Description

      This error appears to not be Groovy specific as I was able to reproduce it with Groovy 2.2.1 up to 2.3.4 when JDK7u65 was in use. There's no error with JDK7u60.

      Stacktrace

      java.lang.VerifyError: Bad <init> method call from inside of a branch
      Exception Details:
        Location:
          org/opendolphin/server/adapter/MockPrintWriter.<init>()V @126: invokespecial
        Reason:
          Error exists in the bytecode
        Bytecode:
          0000000: b800 184c 04bd 001a 5903 121c 5359 10ff
          0000010: 1204 b800 222a 5fab 0000 0138 0000 0009
          0000020: 8355 379f 0000 0051 aad3 b1ff 0000 006d
          0000030: d9ca eaf6 0000 0080 daf2 35d5 0000 009f
          0000040: e925 fa09 0000 00b4 0a30 63a7 0000 00d1
          0000050: 1030 b9ba 0000 00e6 3bdc c40d 0000 0107
          0000060: 4ad1 f42c 0000 0123 5f5a 5903 3212 24b8
          0000070: 0028 c000 245f 5904 32b8 002e 5f57 b700
          0000080: 31a7 00d8 5f5a 5903 32b8 0037 c000 395f
          0000090: 57b7 003c a700 c55f 5a59 0332 123e b800
          00000a0: 28c0 003e 5f59 0432 b800 37c0 0039 5f57
          00000b0: b700 41a7 00a6 5f5a 5903 3212 24b8 0028
          00000c0: c000 245f 57b7 0044 a700 915f 5a59 0332
          00000d0: b800 37c0 0039 5f59 0432 b800 37c0 0039
          00000e0: 5f57 b700 47a7 0074 5f5a 5903 3212 49b8
          00000f0: 0028 c000 495f 57b7 004c a700 5f5f 5a59
          0000100: 0332 124e b800 28c0 004e 5f59 0432 123e
          0000110: b800 28c0 003e 5f57 b700 51a7 003e 5f5a
          0000120: 5903 3212 49b8 0028 c000 495f 5904 32b8
          0000130: 002e 5f57 b700 54a7 0022 5f5a 5903 3212
          0000140: 3eb8 0028 c000 3e5f 57b7 0057 a700 0dbb
          0000150: 0059 5912 5bb7 005c bf57 2ab6 0060 4d2c
          0000160: 2a5f b500 622c 57b1                    
        Stackmap Table:
          full_frame(@104,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@132,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@151,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@182,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@203,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@232,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@253,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@286,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@314,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@335,{UninitializedThis,Object[#102]},{Object[#104],UninitializedThis})
          full_frame(@345,{Object[#2],Object[#102]},{Object[#104]})
      
      	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
      	at java.lang.Class.getDeclaredConstructors(Class.java:1901)
      	at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
      	at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
      	at org.opendolphin.server.adapter.InvalidationServletSpec.mockServlet_closure4(InvalidationServletSpec.groovy:41)
      	at groovy.lang.Closure.call(Closure.java:423)
      	at org.opendolphin.server.adapter.InvalidationServlet.doPost(InvalidationServlet.groovy:29)
      	at org.opendolphin.server.adapter.InvalidationServletSpec.with 'invalidate' in the path info, the session should be invalidated(InvalidationServletSpec.groovy:18)
      

      Steps to reproduce

      1. clone the open-dolphin repository located at https://github.com/canoo/open-dolphin/
      2. switch to the 'update_gradle_build' branch
      3. make sure you have JDK7u65 as your current JDK
      4. gradlew test (subproject/server should have a failing test)

      Switch to JDK7u60 to see the error disappear.

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              aalmiray Andres Almiray
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: