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

Constructor StreamResult(File) throws NoSuchMethodError on jdk1.3.1

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b57
    • CPU:
      generic, x86
    • OS:
      generic, windows_98

      Backports

        Description

        Name: eaR10174 Date: 05/25/2004



        When running on jdk1.3.1 the constructor StreamResult(File) throws NoSuchMethodError.

        The sample is provided below; it fails on JDK 1.3.1 with jaxp-1.3-beta-b15 build
        19_may_2004.
        ------------------------------------test.java-----------------------------
        import javax.xml.transform.stream.StreamResult;
        import java.io.File;

        public class test {

            public static void main (String[] args) {
                StreamResult result = new StreamResult(new File("file"));
                System.out.println("OK");
            }
        }
        --------------------------------------------------------------------------
        % echo $CLASSPATH; java -showversion test
        /export/ld50/java/products/sun/JAXP/jaxp-1.3-beta-b15-19_may_2004/dom.jar:
        /export/ld50/java/products/sun/JAXP/jaxp-1.3-beta-b15-19_may_2004/jaxp-api.jar:
        /export/ld50/java/products/sun/JAXP/jaxp-1.3-beta-b15-19_may_2004/sax.jar:
        /export/ld50/java/products/sun/JAXP/jaxp-1.3-beta-b15-19_may_2004/xalan.jar:
        /export/ld50/java/products/sun/JAXP/jaxp-1.3-beta-b15-19_may_2004/xercesImpl.jar
        java version "1.3.1"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
        Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

        Exception in thread "main" java.lang.NoSuchMethodError
                at javax.xml.transform.stream.StreamResult.setSystemId(StreamResult.java:143)
                at javax.xml.transform.stream.StreamResult.<init>(StreamResult.java:77)
                at test.main(test.java:7)
        --------------------------------------------------------------------------

        The bug affects the new JAXP TCK 1.3 tests which pass on jdk1.5.0-beta2-b51:

         api/javax_xml/transform/stream/StreamResult/index.html#Ctor[Ctor005]
         api/javax_xml/transform/stream/StreamResult/index.html#setGet[setGet003]
         api/javax_xml/transform/stream/StreamResult/index.html#setGet[setGet005]
         api/javax_xml/transform/stream/StreamResult/index.html#setGet[setGet006]

        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jsuttorsunw Jeff Suttor (Inactive)
                Reporter:
                evgsunw Evg Evg (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: