Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.0-JSR-1
-
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) }}