IE9 beta: LiveConnect/JSstaticMethodDirectAccess - constructor call causes exception ( IAE )

XMLWordPrintable

    • b138
    • generic
    • windows_vista
    • Verified

      Short desc:
        Test JSstaticMethodDirectAccess ( see also CR 6648488 ) successfully calls 2 applets static methods, but got JS exception when constructor is executed.
      The same test PASS ok with IE8, but FAILS with IE9 beta.

      Exception:
      message = java.lang.IllegalArgumentException: No method found matching name com.company1.JDirectUDHelper1 and arguments [sun.plugin2.main.client.MessagePassingJSObject]

      Test URL:
        http://vice.russia.sun.com/newroot/testsuites/160_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/JSstaticMethodDirectAccess.html

      HTML/JS code fragment which causes exception:

      function runTest() {
          var passed = false;
          var excStr = null;
          try {
              // Make sure we can call a different static
              // method in each applet's namespace and instantiate a
              // different class in each applet's namespace
                passed = (applet1.Packages.com.company1.JDirectUDHelper1.passed() &&
                          applet2.Packages.com.company2.JDirectUDHelper2.passed() &&
                          (new applet1.Packages.com.company1.JDirectUDHelper1() != null) ) // &&
                          (new applet2.Packages.com.company2.JDirectUDHelper2() != null));
          } catch (e) {
              excStr = getExceptionString(e);

      Line with code "new applet1.Packages.com.company1.JDirectUDHelper1()" causes mentioned exception with IE9.
      Static methods JDirectUDHelper1.passed() and JDirectUDHelper2.passed() work OK.

      See details, test src links, etc in comments section.

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Dmitriy Gubkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: