Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1169

Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()

    XMLWordPrintableJSON

Details

    Description

      I try to load the following XML document without defining XSD against the XSDHelper.

      <?xml version="1.0" encoding="UTF-8"?>
      <p:op xmlns="http://www.example.com/wrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.example.com/wrapper wrapper.xsd ">
      <message>message</message>
      <symbol>symbol</symbol>
      <message>message1</message>
      <symbol>symbol1</symbol>
      <symbol>symbol2</symbol>
      </p:op>

      Then when I call:

      List properties = rootObject.getInstanceProperties();

      For a property in the list, calling p.getType() gives me a ClassCastException.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rfeng Zhaohui Feng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: