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

Uninitialized object exists on backward branch 70

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.3, 2.3.4
    • Fix Version/s: None
    • Component/s: bytecode
    • Labels:
      None
    • Environment:

      Description

      The following error appears when @CompileStatic is applied to line 110 of OpenDolphin's Clientconnector class (see https://github.com/canoo/open-dolphin/blob/injection-providers/subprojects/client/src/main/groovy/org/opendolphin/core/client/comm/ClientConnector.groovy#L110)

      gradle clean test
      :buildSrc:compileJava UP-TO-DATE
      :buildSrc:compileGroovy UP-TO-DATE
      :buildSrc:processResources UP-TO-DATE
      :buildSrc:classes UP-TO-DATE
      :buildSrc:jar UP-TO-DATE
      :buildSrc:assemble UP-TO-DATE
      :buildSrc:compileTestJava UP-TO-DATE
      :buildSrc:compileTestGroovy UP-TO-DATE
      :buildSrc:processTestResources UP-TO-DATE
      :buildSrc:testClasses UP-TO-DATE
      :buildSrc:test UP-TO-DATE
      :buildSrc:check UP-TO-DATE
      :buildSrc:build UP-TO-DATE
      using javafx from current java 8: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/ext/
      :client:clean
      :shared:compileJava UP-TO-DATE
      :shared:compileGroovy
      Note: /Users/aalmiray/Projects/canoo/open-dolphin/subprojects/shared/src/main/groovy/org/opendolphin/core/BaseAttribute.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      :shared:processResources UP-TO-DATE
      :shared:classes
      :shared:jar
      :client:compileJava UP-TO-DATE
      :client:compileGroovy
      :client:processResources UP-TO-DATE
      :client:classes
      :client:instrument SKIPPED
      :client:copyCoberturaDatafile SKIPPED
      :client:compileTestJava UP-TO-DATE
      :client:compileTestGroovy FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':client:compileTestGroovy'.
      > Uninitialized object exists on backward branch 70
        Exception Details:
          Location:
            org/opendolphin/core/client/comm/ClientConnector.processResults(Ljava/util/List;Ljava/util/List;)V @105: goto
          Reason:
            Error exists in the bytecode
          Bytecode:
            0000000: 2a4e 2d57 2dbb 00c0 5905 bd00 0459 032b
            0000010: 593a 04c6 0010 1904 b900 c601 00b8 0091
            0000020: a700 0401 5359 042b c700 0701 a700 42bb
            0000030: 00c8 592b b900 c601 00b7 00cb 3a05 2bb9
            0000040: 00cf 0100 3a06 1906 b900 d401 0099 001f
            0000050: 1906 b900 d701 00c0 00d9 3a07 1905 1907
            0000060: b600 ddb9 00e0 0200 57a7 ffdd 1905 5306
            0000070: bd00 e259 0312 e453 5904 12e6 5359 0512
            0000080: e853 b700 ebb6 00ef 0157 bb00 f159 b700
            0000090: f23a 0819 0857 bb00 f159 b700 f23a 0919
            00000a0: 0957 013a 0a2b b900 cf01 003a 0b19 0bb9
            00000b0: 00d4 0100 9900 7619 0bb9 00d7 0100 12d9
            00000c0: b800 40c0 00d9 3a0a 2d19 0ab6 00f6 3a0c
            00000d0: 190c 5719 0cb8 005a 9900 0f19 0cc1 00f8
            00000e0: 9900 0704 a700 0403 9900 1619 0819 0c12
            00000f0: f8b8 0040 c000 f8b8 00fe 57a7 002c 190c
            0000100: b800 5a99 000f 190c c101 0099 0007 04a7
            0000110: 0004 0399 0014 1909 190c 1301 00b8 0040
            0000120: c001 00b8 00fe 57a7 ff86 2cb8 0104 c000
            0000130: abb6 0108 3a0d 190d 5719 0db8 005a 9900
            0000140: 2d19 0d19 08bb 010a 592a 2ab7 010b b801
            0000150: 0f12 c2b8 0040 c000 c2b9 0115 0200 0157
            0000160: 190d 1909 b901 1802 0001 57b1          
          Stackmap Table:
            full_frame(@35,{Object[#2],Object[#194],Object[#194],Object[#2],Object[#194]},{Object[#2],Uninitialized[#5],Uninitialized[#5],Object[#291],Object[#291],Integer})
            full_frame(@36,{Object[#2],Object[#194],Object[#194],Object[#2],Object[#194]},{Object[#2],Uninitialized[#5],Uninitialized[#5],Object[#291],Object[#291],Integer,Object[#141]})
            full_frame(@47,{Object[#2],Object[#194],Object[#194],Object[#2],Object[#194]},{Object[#2],Uninitialized[#5],Uninitialized[#5],Object[#291],Object[#291],Integer})
            full_frame(@70,{Object[#2],Object[#194],Object[#194],Object[#2],Object[#194],Object[#200],Object[#209]},{Object[#2],Uninitialized[#5],Uninitialized[#5],Object[#291],Object[#291],Integer})
            full_frame(@108,{Object[#2],Object[#194],Object[#194],Object[#2],Object[#194],Object[#200],Object[#209]},{Object[#2],Uninitialized[#5],Uninitialized[#5],Object[#291],Object[#291],Integer})
            full_frame(@110,{Object[#2],Object[#194],Object[#194],Object[#2],Object[#194]},{Object[#2],Uninitialized[#5],Uninitialized[#5],Object[#291],Object[#291],Integer,Object[#200]})
            full_frame(@173,{Object[#2],Object[#194],Object[#194],Object[#2],Object[#194],Top,Top,Top,Object[#241],Object[#241],Object[#217],Object[#209]},{})
            append_frame(@231,Object[#4])
            same_locals_1_stack_item_frame(@232,Integer)
            same_frame(@254)
            same_frame(@274)
            same_locals_1_stack_item_frame(@275,Integer)
            same_frame(@295)
            chop_frame(@298,1)
            append_frame(@363,Top,Object[#273])
      
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      BUILD FAILED
      
      Total time: 9.244 secs
      

      The error does not occur with groovy 2.3.2 or earlier.

      How to reproduce:

      The build is configured to compile against Groovy 2.3.4. Edit $rootProject/gradle.properties to change the value of the `groovyVersion` property.

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              aalmiray Andres Almiray

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment