Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6374

[classlib] The default behavior differs from RI (Calendar.getMinimalDaysInFirstWeek()).

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.0M11
    • None
    • None
    • All platforms
    • Novice

    Description

      Calendar.getMinimalDaysInFirstWeek(), by default, does not return the same value. RI returns 1 and Harmony returns 4. The documentation does not specify any particular value. This is not a bug. However, if there is a need for Harmony's default behavior to match that of RI, it needs to be fixed.
      import java.util.GregorianCalendar;

      public class CalendarTest {

      public static void main(String[] args)

      { GregorianCalendar c = new GregorianCalendar(); System.out.println(c.getMinimalDaysInFirstWeek()); }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            rpolavar Ramana Polavarapu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified