This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/18083] Calendar returns incorrect values for DAY_OF_YEAR and DAY_OF_WEEK after calling add().


------- Additional Comments From mnefedov at rogers dot com  2004-10-20 17:33 -------
This could be a workaround. Do this: cal.setTime( cal.getTime() )

 before calling get( Calendar.DAY_OF_{YEAR|WEEK} );

Seems to fix the problem.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18083


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]