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

Schema compiler allows schemata to have unpaired parenthesises in regex

XMLWordPrintable

    • 1.4
    • generic
    • generic
    • Verified

        Schema compiler ignores regular expresssions that have unmatched close parenthesis:
        <xsd:restriction base="xsd:string">
          <xsd:pattern value="ab|(d))"/>
        </xsd:restriction>

        other wrong schemata that are correct from the schema compiler point of view are attached.

        the following JCK tests fail:
        xml_schema/msData/regex/jaxp/reD10.html#reD10
        xml_schema/msData/regex/jaxp/reD11.html#reD11
        xml_schema/msData/regex/jaxp/reD12.html#reD12
        xml_schema/msData/regex/jaxp/reE9.html#reE9
        xml_schema/msData/regex/jaxb/reD10.html#reD10
        xml_schema/msData/regex/jaxb/reD11.html#reD11
        xml_schema/msData/regex/jaxb/reD12.html#reD12
        xml_schema/msData/regex/jaxb/reE9.html#reE9
        The attached invalid schema RegexTest_1258.xsd is also correct for the schema compiler

              joehw Joe Wang
              lkuskov Leonid Kuskov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: