This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


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

Re: Patch: java.util.Calendar


>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:

Jeff> Calendar.add() in libgcj doesn't behave as the JDK does.  This
Jeff> patch brings it closer.  It still not be 100% correct, but I'd
Jeff> like to see this working in 3.0 if possible.

As it happens I'm doing work in this area right now as well.

I've found there are oddities in several places in Calendar and
GregorianCalendar.

Jeff> I have an incomplete Calendar test that passes libgcj with the
Jeff> patch below.  When I get a little more time I'll figure out how
Jeff> to get the tests into Mauve, which doesn't test Calendar yet.

This would be great to have now, so I could use it in my testing too.
Right now we don't pass the Mauve SimpleDateFormat tests.  I have most
of those fixed in my tree right now.

If you could send me your Calendar test I'd be happy to make it into
Mauve test and check it in.  Sooner is good for me...

Jeff> 2001-04-25  Jeff Sturm  <jsturm@one-point.com>
Jeff> 	* Calendar.java (get): Clear areFieldsSet if requested field
Jeff> 	is not set.
Jeff> 	(set): Unset fields that depend on new value.
Jeff> 	* GregorianCalendar.java (add): Use get, set to alter field.
Jeff> 	(adjust): Ditto.

I'll try to look at this in the near future (like tomorrow or Friday).
I've been trying to make minimal changes to get the pieces of this I
need working.  However it might not be possible to do that.
Substantial work might be required :-(

Tom


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