Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4470233

Calendar.getInstance used for UTCTime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: