Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[13:19:22 CDT(-0500)] <EricDalquist> and I just found a spring bug ...

[14:25:34 CDT(-0500)] <jwennmacher> cool ... do share

[14:25:53 CDT(-0500)] <EricDalquist> ordering of spring annotation handlers

[14:26:00 CDT(-0500)] <EricDalquist> their compare impl is broken

[14:26:15 CDT(-0500)] <EricDalquist> in this case a portlet has 6 handler methods

[14:26:18 CDT(-0500)] <EricDalquist> that end up in a list like [ren, res, ren, res, ren, res]

[14:26:23 CDT(-0500)] <EricDalquist> problem is when it compares handlers of different types is returns 0

[14:26:28 CDT(-0500)] <EricDalquist> and with them alternating the merge sort never compares handlers of the same type

[14:26:32 CDT(-0500)] <EricDalquist> so it assumes the list is in order