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

GregorianCalendar and groovysh not printing or throwing exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-JSR-1
    • 1.0-JSR-2
    • None
    • None
    • Debia/Gnu Linux 2.6.9 Groovy Version: 1.0-jsr-01 JVM: 1.5.0-b64

    Description

      The following code typed inside the groovysh:

      cal = new GregorianCalendar()
      cal.set(Calendar.DAY_OF_MONTH,1);
      println cal.get(Calendar.DAY_OF_MONTH)

      doesn't print any result, and it doesn't throw any exception.

      class MyCalendar{
      /**

      • Main method
        */
        static void main(args) { cal = new GregorianCalendar() cal.set(Calendar.DAY_OF_MONTH,1); println cal.get(Calendar.DAY_OF_MONTH) }

        }

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            vschiavoni Valerio Schiavoni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: