DO NOT SUBMIT HELP REQUESTS TO JIRA.  INSTEAD USE THE MAILING LIST TO ASK FOR HELP.

QuickFIX/J

FieldType gives the wrong Java type for date-based fields

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Default Default
  • Resolution: Fixed
  • Affects Version/s: 1.0.5
  • Fix Version/s: 1.2.1
  • Component/s: Engine
  • Labels:
    None

Description

The constructors for the singletons for date-based FieldTypes (in FieldType.java) are constructed with the wrong Java datatype (I think). Fields that represent UtcTimeStamps for example, actually return a Date object from getValue().

The offending lines are:

    public final static FieldType UtcTimeStamp = new FieldType("UTCTIMESTAMP", Calendar.class);
    public final static FieldType UtcDateOnly = new FieldType("UTCDATEONLY", Calendar.class);
    public final static FieldType UtcDate = new FieldType("UTCDATEONLY", Calendar.class);
    public final static FieldType UtcTimeOnly = new FieldType("UTCTIMEONLY", Calendar.class);

I think the "Calendar.class" should be replaced by "Date.class" at the end of each constructor call.

Activity

Hide
Toli Kuznets added a comment - 02/May/07 4:00 AM

fixed in revision 622

Show
Toli Kuznets added a comment - 02/May/07 4:00 AM fixed in revision 622

People

Vote (0)
Watch (0)

Dates

  • Created:
    11/Apr/07 7:52 PM
    Updated:
    11/Feb/09 5:24 PM
    Resolved:
    02/May/07 4:00 AM