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

javax.xml.Version: constructor throws NullPointerException

XMLWordPrintable

    • 1.3
    • generic
    • generic

        Name: erR10175 Date: 12/11/2003


         
          The constructor javax.xml.Version.Version() throws NullPointerException.

        The exception is not described in the description of the class.

        This bug affects new test in JCK 1.5 (not yet integrated)
           api/javax_xml/Version/index.html#Version

        The bug is found in jdk1.5.0/beta/b30.

        To reproduce the bug compile and run the following code as shown
        in the log below:
        ------------------------------ test.java
        import javax.xml.Version;

        class test {
            public static void main(String [] args) {
                System.out.println(new Version());
            }
        }
        ----------------------------------------

        ------------------------------------ log
        $javac test.java && java -showversion -cp . test
        java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b30)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b30, mixed mode)

        Exception in thread "main" java.lang.NullPointerException
                at javax.xml.Version.implementationVersionInformation(Version.java:127)
                at javax.xml.Version.<init>(Version.java:114)
                at test.main(test.java:5)
        ----------------------------------------

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

              jsuttorsunw Jeff Suttor (Inactive)
              reysunw Rey Rey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: