Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3383

HandlerUtil.getPreferredHandler(Class<H> handlerType, Class<T> type) throws an exception if top-ranked handlers have the same order ranking

    XMLWordPrintable

    Details

      Description

      This is problematic because PatientValidator and PersonValidator have the same ranking (order = 50).

      So if you attempt to fetch the preferred handler for validating a Patient, this exception is thrown.

      Probably getPreferredHandler should return the more-specific class. (PatientValidator is this case).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                raff Rafal Korytkowski
                Reporter:
                mogoodrich Mark Goodrich
                Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 2 hours
                    2h