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

SAX: Warning message errorHandlerNotSet is not localized

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: xml
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      5.0
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              joehw Joe Wang
              Reporter:
              yhuang Yong Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: