Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-240

ArrayStoreException when invoking XmlObject.selectPath()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Version 2, Version 2.1
    • None
    • XPath
    • None

    Description

      Copied from message:

      I've been getting some ArrayStoreException errors when invoking the selectPath() method in an XmlObject subclass. Tracking the traceback exception I noticed that this occurs in the XmlObjectBase._typedArray() method, when the input array argument has a XmlAnyTypeImpl object and the System.arraycopy is invoked.

      I'm failing to understand what's the need of having a _typedArray() because apparently it can't handle XmlAnyTypeImpl classes and every class (including the XmlAnyTypeImpl class) implements the XmlObject interface.

      Given that both selectPath(String,XmlOptions) and execQuery(String,XmlOptions) return a XmlObject[] and these are invokers of the _typedArray() method, what is the need for a method that crashes and apparently is redundant?

      Cheers,
      Celso

      Attachments

        Activity

          People

            cezar Cezar Cristian Andrei
            radup Radu Preotiuc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: