Menu

#3 Calendar causes Domify to fail (StackOverflowError)

open
nobody
None
5
2008-03-27
2008-03-27
toby cabot
No

java.util.Calendar causes Domify to go into a loop and ultimately run out of stack space.

I'll attach a stack trace showing the StackOverflowError.

Discussion

  • toby cabot

    toby cabot - 2008-03-27

    stack trace showing StackOverflowError

     
  • toby cabot

    toby cabot - 2008-03-27

    Logged In: YES
    user_id=55510
    Originator: YES

    It looks as if the problem is actually caused by java.util.TimeZone which has a method:

    public static TimeZone getDefault()

    ...that creates an endless loop.

     
  • toby cabot

    toby cabot - 2008-03-27

    Logged In: YES
    user_id=55510
    Originator: YES

    Here's a patch that adds a CalendarNodeListAdapter and a unit test. CalendarNodeListAdapter just formats the Calendar as an xml schema-compliant date including the time zone. Since it never worked before we don't need to worry about backward compatibility and I think most people want to display the Calendar as a date rather than as its component members.

    File Added: bug_1926685-patch.txt

     
  • toby cabot

    toby cabot - 2008-03-27

    patch to add CalendarNodeListAdapter

     

Log in to post a comment.

MongoDB Logo MongoDB