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

Liveconnect: Data types issues on IE should be documented or FIXED

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Future Project
    • Icon: P3 P3
    • 7-pool
    • 6u2, 6u10
    • deploy
    • None
    • generic, x86
    • windows

      I've one more scenario related to passing of datatypes from java > JS then again getting them back from JS > Java. Link given below
      Build Tried : Promoted 6u2 JRE build
      OS : Windows XP
      Problem:
      Datayypes are not getting exchanged properly on IE browser but it works fine on firefox and mozilla.
      - long, float are getting retrieved as java.lang.Double
      - char,short,byte are getting converted into java.lang.Integer.
      Interesting thing about char is that on IE, Javascript is recieving it as
      - char MIN_VALUE as "0"
      - char MAX_VALUE as "65535"
      Passing an array from JS > Java or Java > JS is not possible at all on IE. It simply throws following exception :
      java.lang.Exception: setStringArray{0} :no such method exists
      at sun.plugin.com.JavaClass.getMethod1(Unknown Source)
      at sun.plugin.com.JavaClass.getDispatcher(Unknown Source)
      at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
      at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
      java.lang.Exception: java.lang.Exception: setStringArray{0} :no such method exists
      at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
      at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.com.DispatchImpl.invoke(Unknown Source)

      Bug is also reproducible with 1.4.2_15 and 1.5.0_12

      1) For array related issue try to run any of the following htmls inside IE browser:
      Test HTML:
      http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_UR_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/SimpleJavaJSJava.html
      http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_UR_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/Public_array_method.html
      If you notice the above mentioned exception then bug is reporduced

      Java Sources:
      http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_UR_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/src/SimpleJavaJSJava.java

      2) For other data types issues try to run following html inside IE browser
      http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_UR_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/win32/JavaToJSDataTypesApp.html
      Java source:
      http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_UR_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/win32/JavaToJSDataTypes.java

      The issues should either be FIXED or documented if not possible to fix

            henryjen Henry Jen
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: