Metadata Sharing Module
  1. Metadata Sharing Module
  2. META-226

getDeproxiedClass does not work right in OpenMRS 1.9

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Should Should
    • Resolution: Fixed
    • Affects Version/s: 1.0.7
    • Fix Version/s: 1.0.8
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      In OpenMRS 1.9 we switch to a newer version of Hibernate that uses javassist proxies instead of cglib proxies. MDS has a ClassUtil.getDeproxiedClass(Class) method that strips off the part of the classname after the $, but this isn't sufficient in OpenMRS 1.9 because javassist does things like: "org.openmrs.ConceptDatatype_$$_javassist_65".

      I assume this should be as easy as stripping off "_$*" if it exists, and "$*" otherwise.

        Gliffy Diagrams

          Activity

          Hide
          Darius Jazayeri added a comment -
          Show
          Darius Jazayeri added a comment - Created pull request at https://github.com/OpenMRS/openmrs-module-metadatasharing/pull/2
          Hide
          Rafal Korytkowski added a comment -

          Merged. Thanks Darius!

          Show
          Rafal Korytkowski added a comment - Merged. Thanks Darius!

            People

            • Assignee:
              Darius Jazayeri
              Reporter:
              Darius Jazayeri
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development