Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-246

XMl JAXB pluggable ContextResolver not being noticed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.GA
    • 1.1.RC2
    • None
    • None

    Description

      Thanks for your quick response.
      I investigate more and my ContextResolver is called.
      The problem is now from XmlJAXBContextFinder, like https://jira.jboss.org/jira/browse/RESTEASY-229 but at line 37 : instead of
      jaxb = findProvidedJAXBContext((Class<?>) type, mediaType);
      if (jaxb != null)

      { cache.putIfAbsent((Class<?>) type, jaxb); result = jaxb; }

      I put a return :
      jaxb = findProvidedJAXBContext((Class<?>) type, mediaType);
      if (jaxb != null)

      { cache.putIfAbsent((Class<?>) type, jaxb); return jaxb; }

      Now it works.
      Else my context with necessary classes is replaced next line by a context knowing one class.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            patriot1burke@gmail.com Bill Burke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: