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

BeanContextSupport.setLocale(Locale l) - null behavior undefined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • docs
    • beta2
    • sparc
    • solaris_7
    • Verified



      Name: ktR10099 Date: 04/18/2001


      Javadoc for java.beans.beancontext.BeanContextSupport.setLocale() method
      with reference type arguments does not describe expected reaction when
      null is passed in.

      As "Requirements for Writing Java API Specifications" says:
       (http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method)

      Method Specification
          This section applies to Java methods and constructors. Each method and
          constructor specification must include:
          .....
      4.Null Argument Values - For each reference type argument, specify the behavior
        when null is passed in.See two examples. NOTE: If possible, document the general
        null argument behavior at the package or class level, such as causing a
        java.lang.NullPointerException to be thrown. Deviations from this behavior can
        then be documented at the method level.

      Due to lack of documentation several
      java.beans.beancontext.BeanContextSupport tests assume, that
      setLocale(null) would result in setting locale to Locale.getDefault().

      Affected testcases are:
      api/java_beans/beancontext/BeanContextSupport/index.html#Fields[BeanContextSupp$
      api/java_beans/beancontext/BeanContextSupport/index.html#Simple[BeanContextSupp$

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

            shommel Scott Hommel (Inactive)
            kvtsunw Kvt Kvt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: