Uploaded image for project: 'Wink'
  1. Wink
  2. WINK-352

AbstractJAXBProvider: getJAXBUnmarshaller is final (unlike getJAXBMarshaller)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.3
    • None
    • Client
    • None

    Description

      I am extending AbstractJAXBProvider and found that getJAXBUnmarshaller is final (unlike getJAXBMarshaller). It is just inconsistent and would be useful if these methods are not final.

      I am actually more interested in overriding AbstractJAXBProvider#getXMLStreamReader(...) calls and these are marked as static. It would be useful if these methods are not static. I can then wrap the XMLStreamReader to deal with XML parsing case sensitivity issues like:

      javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"Time"). Expected elements are <{}time>

      Simple changes:
      a.) Remove final keyword on AbstractJAXBProvider#getJAXBUnmarshaller()
      b.) Remove static keyword on AbstractJAXBProvider#getXMLStreamReader(InputStream) and AbstractJAXBProvider#getXMLStreamReader(InputStreamReader)

      Attachments

        1. AbstractJAXBProvider.diff
          6 kB
          Seshu Pasam

        Activity

          People

            rfeng Zhaohui Feng
            pasam Seshu Pasam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: