Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-625

Incorrect params in InvalidCharInAttValue and usage in reportFatalError()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.3.0
    • None
    • SAX
    • None
    • Operating System: All
      Platform: All
    • 17294

    Description

      This bug is present in all versions 2.0.0 - 2.3.0
      -------------------------------------------------

      props file

      XMLMessages.properties

      contains incorrect definition of

      InvalidCharInAttValue = An invalid XML character (Unicode: 0x

      {2}

      ) was found
      in the value of attribute \"

      {1}\".

      correct is:

      InvalidCharInAttValue = An invalid XML character (Unicode: 0x{0}) was found
      in the value of attribute \"{1}

      \".

      On occurence of this error in

      XML11DocumentScannerImpl.java
      and
      XMLScanner.java

      only one param value is passed:

      reportFatalError("InvalidCharInAttValue",
      new Object[]

      {Integer.toString(c, 16)}

      );

      correct call is:

      reportFatalError("InvalidCharInAttValue",
      new Object[]

      {Integer.toString(c, 16), atName}

      );

      MaT

      Attachments

        Activity

          People

            venu Venugopal Rao K
            matja@seznam.cz MaT
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: