Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6472193

Stax API is not 1.5 ready

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) SE Runtime Environment (build 1.6.0-rc-b93)
      Java HotSpot(TM) Client VM (build 1.6.0-rc-b93, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The Stax API uses raw types in its API :

      In XMLEventFactory :
        - createStartElement(QName,Iterator,Iterator);
         => createStartElement(QName,Iterator<Attribute>,Iterator<Namespace>);

        - idem for, createStartElement(String prefix,
                                               String namespaceUri,
                                                String localName,
                                                Iterator<Attribute> attributes,
                                                 Iterator<Namespace> namespaces
                                                );
         - createEndElement(QName name, Iterator<Namespace> namespaces);
         - createEndElement(String prefix,
                                               String namespaceUri,
                                               String localName,
                                                Iterator<Namespace> namespaces)

      In XMLEventReader, XMLEventReader must inherit from Iterator<XMLEvent>,
      this change must be done now because it's not a backward compatible change !!

      Futhermore, XMLStreamException is not 1.4 ready because the exception
      doesn't use the cause mecanism, it's important to avoid headache when debugging.

      see this thread for more detail :
      http://forums.java.net/jive/thread.jspa?threadID=18374&tstart=0


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      use the API

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            Assignee:
            joehw Joe Wang
            Reporter:
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: