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

Xerces 2.12.2 not updated correctly

XMLWordPrintable

    • b01
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      We noticed we are having an issue with the XMLSchemaValidator of xerces in the version 2.12.2, which got updated in the version 11.0.17.

      After investigating, we noticed that the actual code in the jdk differs to the official repository of xerces (
      https://svn.apache.org/repos/asf/xerces/java/).
      We found out that in the pull requests to update xerces to 2.12.2 (e.g. https://github.com/openjdk/jdk11u-dev/pull/1245/files) the XMLSchemaValidator was not updated correctly on line 3220-3235. Line 3219-3222 should not exist and leads now to the creation of 2 schemaErrors when using the jdk version of xerces.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Open https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_2_12_2/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
      2. Open https://github.com/openjdk-bots/jdk11u-dev/blob/5581111a6e7a70f8a23ad67763c4d952e40783cf/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaValidator.java
      3. Compare line 3222 on each file

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The jdk version of the XMLSchemaValidator should not differ from the original XMLSchemaValidator
      ACTUAL -
      The jdk version of the XMLSchemaValidator differs from the orignal.

      FREQUENCY : always


            joehw Joe Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: