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

Patient.setIdentifiers accepts args it shouldn't

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Could
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Patient.setIdentifiers will allow you to specify a new set of identifiers, and takes whatever set you give it. However, later on, it is necessary to cast that set to a SortedSet, and not all Sets can be cast. (In particular, Collections.singletonSet cannot.) Patient.setIdentifiers should copy the argument set instead.

      Easy to work around, but should be fixed because it is hard to debug when it happens, since the error appears to come from deep within Hibernate.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                denised Denise Draper
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 2 hours Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day, 4 hours
                    1d 4h