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

Stack overflow when property accessor is annoated with @CompileStatic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • Static compilation
    • 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

            melix Cédric Champeau
            boaznahum Boaz Nahum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: