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

Fix introduced for GROOVY-3436 created a situation that can result in a stackoverflowerror with some groovy config objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6.1, 1.6.2, 1.6.3, 1.7-beta-1, 1.7-rc-1, 1.7.0, 3.0.0-alpha-1
    • 1.6.4, 1.7-beta-1
    • None
    • None

    Description

      The following config causes the config slurper to create an object that subsequently causes a stackoverflow error.

      I believe the root cause starts here.

      http://github.com/russel/groovy/commit/05248f609f805d9a467a6fa6bd07dacaa71a71ef#L1R221

      def cfg = """
      smc{
        pages{
          smc {
            type="smcAdminPage"
          }
        }
      }
      """
      
      ConfigObject c = new ConfigSlurper().parse(cfg)
      
      print c
      

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              asperkins Tony Perkins
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: