Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-915

Try loading newer classes before older classes

    XMLWordPrintable

Details

    • Task
    • Status: Code Review (Post-Commit)
    • TBD
    • Resolution: Unresolved
    • 2.39.0
    • None
    • None
    • None

    Description

      In an effort to maintain backwards compatibility, we often dynamically load classes as basically a strategy pattern at run time where the implementation might be in one class in an older version of OpenMRS but another class in a newer version, e.g., Spring's MappingJacksonHttpMessageConverter vs the MappingJackson2HttpMessageConverter. In these cases, we should prefer loading the more "modern" alternative before the "older" one, as, for newer implementations (which are most likely to use the newest versions of the module), we can avoid the overhead of a ClassNotFoundException.

      Gliffy Diagrams

        Attachments

          Activity

            People

              ibacher Ian Bacher
              ibacher Ian Bacher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: