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

typedef of string generates wrong code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.4
    • other-libs
    • 1.2alpha
    • x86
    • windows_nt
    • Verified



      Name: rm29839 Date: 11/05/97


      using the idltojava tool, version Thu Feb 27 11:22:49 1997
      if you typedef this : typedef string Istring
      And you method refrences it :
      interface hello
          {
              Istring sayHello(in Myint al);
          };

      the code generated is incorrect.
      It will make refrence to it like this :
      _hellostub.java

          public String sayHello(int al)
       {
         long _n[] = new long[2];
         java.lang.Object _o[] = new java.lang.Object[2];
         java.lang.Object _e;
         _o[0] = new StringHolder();
         _n[0] = (al & 0xFFFFFFFFL);
         _e = _invoke(__ops[0], _n, _o);
          return (String) _o[0];
          }
      the StringHolder() is the problem.


      Al
      (Review ID: 18910)
      ======================================================================

            duke J. Duke
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: