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

Stack overflow when property accessor is annoated with @CompileStatic

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Static compilation
    • Labels:
    • Environment:
      Windows 7 64 bit. JDK 1.7.04 32 bit

      Description

      class HaveOption {
      
        private String helpOption;
      
      
        @CompileStatic
        public void setHelpOption(String helpOption) {
          this.helpOption = helpOption
        }
      
      }
      

      Calling setHelpOption cause stack overflow

      Exception in thread "main" java.lang.StackOverflowError
      	at utils.tests.HaveOption.setHelpOption(HaveOption.groovy:15)
      	at utils.tests.HaveOption.setHelpOption(HaveOption.groovy:15)
      	at utils.tests.HaveOption.setHelpOption(HaveOption.groovy:15)
      	at utils.tests.HaveOption.setHelpOption(HaveOption.groovy:15)
      	at utils.tests.HaveOption.setHelpOption(HaveOption.groovy:15)
      

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              boaznahum Boaz Nahum
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: