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

REGRESSION: Can't get String result from ActiveX Bridge component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 5.0
    • deploy
    • x86
    • windows_2000

      Name: gm110360 Date: 09/10/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b60)
      Java HotSpot(TM) Client VM (build 1.5.0-beta3-b60, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows 2000 [Версия 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      I can't get String result from ActiveX Bridge component when I call the method of java class from Sybase Power Builder. The call fails with error "can't convert Any type to string"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      1. Compile the class ComTest (see the SOURCE CODE section below)
      2. Make it ActiveX Bridge component as described in
      http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
      3. Run ActiveX Control Test Container from Microsoft Visual C++ developers pack.
      4. Set the value of the
      4. Test ActiveX component by invoking method echo (Menu Control/Invoke Methods...)

      ACTUAL -
      Resulting string indicates VT_FONT type instead of expected VT_BSTR.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class ComTest
      {
      public String echo(String hello)
      {
      return hello;
      }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      The only way is to use JDK 1.4.2_05 Runtime.

      Release Regression From : 1.4.2
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Incident Review ID: 300909)
      ======================================================================

            jchusunw Jacky Chu (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: