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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 5.0
    • Fix Version/s: 1.3.0
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.3
    • CPU:
      generic
    • OS:
      solaris_2.5.1

      Backports

        Description

        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 )

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: