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

jaxp-test for conformance bug 6756677 still fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 1.4.0
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.4
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      jaxp-test for conformance bug 6756677 still fail after jaxp1.4.4 goes into jdk7 and latest jaxp-test gets integrated.

      The two failed test cases are:
      JAXP:PRODUCT Tests -> JAXP14_Tests -> FactoryTest. test29() and test31()

      log:
      http://sqeweb.sfbay.sun.com/nfs/results/xml/promotion/7/b112/gtee/opensolaris-x64-32_c2/7-b112_promotion_xml_opensolaris-x64-32_c2/ResultDir/jaxp/logs/product/ProductTestResult.html#N76697

      I tried to dig into the jdk code and test code. Then I found
       javax.xml.stream.XMLInputFactory.newInstance(String factoryId,
                ClassLoader classLoader)

      just tries to load the factory from system property, <jre>/lib/stax.properties, and <jdk>/lib/jaxp.properties in turn. If loading fails, it will not fall back to "a default implementation class" as implemented in BEA's jdk, which is mentioned in the conformance bug 6756677.

      Is this behavior what we want? If that's the case, I think we should add one line of code, such as:
      System.setProperty("javax.xml.stream.XMLInputFactory", "com.sun.xml.internal.stream.XMLInputFactoryImpl");

      to make the test cases pass.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: