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

DateRange function used by Proxy Javascript returns incorrect value for getYear

XMLWordPrintable

    • rc1
    • x86
    • generic
    • Verified

      Browser: NS4.x
      Tested with Merlin-rc-b86 on Solaris 8 sparc, Solaris 7 x86, Windows98 and RedHat Linux 6.2J Update.

      To reproduce;
      1. Go to the Proxy functionality test page below;
         http://sqesvr.eng.sun.com/deployment1/ws/doc/proc/JPI_proxy.html
      2. Click the url for Test Case 1.
         http://sqesvr.eng.sun.com/deployment1/ws/tests/func/proxys/JPI_Proxy.html

      The following tests fails
        Test dateRange(1, 31) FAILED
        Test dateRange(1, 31, GMT) FAILED
        Test dateRange(JAN, DEC) FAILED
        Test dateRange(1, JAN, 30, DEC) FAILED


      See Bug: 4405264

      All the above test fails as, the dateRange function uses getYear() instead of getFullYear().
      (see developer.netscape.com/docs/manuals JavaScript Reference)

      getYear() returns 101 instead of year 2001.
      Hence the test comparison fails and it is flagged of as FAILED.


      ###@###.### 2001-11-30

      Changing Category to java_plugin
      Sub-category to other

            xlu Xiaobin Lu (Inactive)
            rpallathsunw Rajendra Pallath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: