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

Null property causes OutOfMemoryError in groovyc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-5
    • None
    • None
    • SuSe Linux 8.2, JDK build 1.4.2_02-b03, Ant 1.5.3

    Description

      When compiling this code with groovyc, hit an OutOfMemoryError
      during the compilation (i.e. it never completes), should either
      be invalid syntax with a graceful exit, or valid syntax

      ----------------
      package com.javanicus.groovytest

      class NullPropertyTest extends GroovyTestCase {
      // the following declaration seems to cause the groovyc
      // compiler to hit OutOfMemory, either should be more
      // graceful exit or valid syntax...
      property wensleydale = null

      void testNullProperty()

      { assert wensleydale == null }

      }

      ----------------

      Attachments

        Activity

          People

            jstrachan James Strachan
            jez Jeremy Rayner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: