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

javadoc of Transformer.setParameter need to mention second param can't be null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0, 5.0
    • xml
    • 1.3
    • generic
    • solaris_2.5.1

        Hi:
          The javadoc for Transformer.setParameter(String, Object value) method describes the second parameter as

        value: The value object. THis can be any valid Java Object. It is upto the processor to provide the proper object coercion or to simply pass the Object on for use in an extension

        Section 4.3.1 "Objects" of Java Language specification ( 2nd Ed. ) states that
        "The reference values ( often just references ) are pointers to these objects, and a special null reference, which refers to no object"

         That seems to be the clear indication that "null" can't be considered a valid Java Object and is not permissible as the second parameter of the setParameter method.


        -Ramesh ( for Norm Walsh and JSR 206 EG )

              rmandavasunw Ramesh Mandava (Inactive)
              rmandavasunw Ramesh Mandava (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: