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

SAX: Warning message errorHandlerNotSet is not localized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • xml
    • None
    • 5.0
    • generic
    • generic

      When validation is turned on but an org.xml.sax.ErrorHandler is not set, there is the warning message in SAX parsing. The warning message is not localized in the 10 l10n supported locales.

      I check the resource file jaxp/src/com/sun/org/apache/xerces/internal/impl/msg/SAXMessages_xx.properties. The message is translated and in the resource file. It seems to be an i18n problem, that the localized message is not loaded.

      Attached is a sample java file that schema validation is turned on but ErrorHandler is not set.

      Run below command in non-English locale like zh_CN, ja or de.
      %jdk_path%\bin\java SAXLocalNameCount -dtd book-order-noschema.xml

      The warning message is not localized.

            joehw Joe Wang
            yhuang Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: