Calendar.getInstance used for UTCTime

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: security-libs
    • None

      It looks like the sun.security.util.DerInputBuffer.getTime method has a bug: supposedly it interprets a date in ASN.1 format, but it obtains a calendar from Calendar.getCalendar to translate to a Date. Calendar.getCalendar may well return a Thai Buddhist calendar, which is offset from the Gregorian calendar by 543 years. I don't have an ASN.1 specification available, but I suspect it assumes a Gregorian calendar.

            Assignee:
            Ramachandran Marti (Inactive)
            Reporter:
            Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: