This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/18083] Calendar returns incorrect values for DAY_OF_YEAR and DAY_OF_WEEK after calling add().
- From: "mnefedov at rogers dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2004 17:33:22 -0000
- Subject: [Bug libgcj/18083] Calendar returns incorrect values for DAY_OF_YEAR and DAY_OF_WEEK after calling add().
- References: <20041020155232.18083.mnefedov@rogers.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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