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

ImmutableDescriptor(null) throws NPE in place of IAE starting b39

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-svc
    • b43
    • generic
    • generic
    • Verified

      The test does new ImmutableDescriptor(null) and expects an IllegalArgumentException.
      IAE was the exception thrown up to b38.
      With b39, we receive NPE.

      Test output is:

      Negative cases for constructor ImmutableDescriptor(Map<String,?> fields)

      (TEST) null - null
      (ERROR) Did not receive IllegalArgumentException; got in place java.lang.NullPointerException
      java.lang.NullPointerException
      at javax.management.ImmutableDescriptor.<init>(ImmutableDescriptor.java:90)
      at javasoft.sqe.tests.api.javax.management.foundation.ImmutableDescriptor.ConstructorTest.doConstructorTest_6(ConstructorTest.java:441)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
      at javasoft.sqe.tests.api.javax.management.foundation.ImmutableDescriptor.ConstructorTest.main(ConstructorTest.java:36)

      ###@###.### 2005-06-08 07:53:48 GMT

            emcmanus Eamonn McManus
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: