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

java to Javascript: call method for float/byte/long/.. returns incorrect type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.4.1
    • deploy
    • x86
    • generic


      ###@###.### 2002-07-16

      Browser:: IE5.5 IE6.x
      Platfrom: Win32
      JRE Build used: Build 16
      JRE Location: http://sqesvr/deployment3/hopper/HB-rc-16/win32.b16/
                    or /import/java/jdk1.4.1/../bundles/win*


      Based on the Scripting Redesign RFE for Internet explorer
      A method invoked from Java to javascript using JSObject call must marshall
      the parameters correctly and return the correct type when moving
      between Java-JS and back from Js-Java.

      Currently, this is what is observed when using the JSOBject call method

      Passed argument Return type expected Actual Returntype
      --------------------------------------------------------------
      char char integer
      byte byte integer
      float float double
      long long double
      short short integer

      NOTE: what method returns (see "Actual Returntype")


      Netscape 6.x returns these values correctly.

      Test URL:
       http://sqesvr.sfbay/deployment1/ws_plugin/tests/scriptredesign/applethtml-default/callLC_byte.html

      http://sqesvr.sfbay/deployment1/ws_plugin/tests/scriptredesign/applethtml-default/callLC_char.html

      http://sqesvr.sfbay/deployment1/ws_plugin/tests/scriptredesign/applethtml-default/callLC_short.html

      http://sqesvr.sfbay/deployment1/ws_plugin/tests/scriptredesign/applethtml-default/callLC_float.html

      http://sqesvr.sfbay/deployment1/ws_plugin/tests/scriptredesign/applethtml-default/callLC_long.html

            zgu Zhengyu Gu
            rpallathsunw Rajendra Pallath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: