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

Container name that clashes /w member names are mapped incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • other-libs
    • None
    • merlin
    • sparc
    • solaris_8
    • Not verified


      ********************************************************************************

      tuong.nguyen@eng 2000-09-28

      Spec. reference:
       
       OMG ptc/00-01-06 , section 1.3.2.9 , page 1-9 and 1-10

      Problem description:
       
       According to the OMG spec. that when the remote Java interface name has the
       same name as its method, then the method name should have trailing underscore
       when it's mapped in OMG IDL. Unfortunately, the following output showed that
       the method name did not have the trailing underscore:


      (tuongn@bonnelle) [7:18pm] container01 [494] % cat Test1.java

      // OMG ptc/00-01-06 - 1.3.2.9 Container names that clash with their members

      import java.rmi.*;

      public interface Test1 extends Remote {
          void test1() throws RemoteException;
      }
      (tuongn@bonnelle) [7:18pm] container01 [495] % /usr/local/java/jdk1.4/solaris/bin/javac Test1.java
      (tuongn@bonnelle) [7:18pm] container01 [496] % /usr/local/java/jdk1.4/solaris/bin/rmic -idl Test1
      (tuongn@bonnelle) [7:18pm] container01 [497] % cat Test1.idl
      /**
       * Test1.idl
       * Generated by rmic -idl. Do not edit
       * Thursday, September 28, 2000 7:18:39 PM PDT
       */

      #include "orb.idl"

      #ifndef __Test1__
      #define __Test1__



          interface Test1 {
          
              void test1( );
          
          };

      #pragma ID Test1 "RMI:Test1:0000000000000000"


      #endif

      (tuongn@bonnelle) [7:18pm] container01 [498] %

      ********************************************************************************

      ###@###.### 2001-08-14

      - Fix verified ok
        1) with build: j2sdk-1_4_0-beta_refresh-bin-b75-solsparc-09_aug_2001
        2) with test:
           tests/product/rmi-iiop/JavaToIdlMapping/Names/container01/Test1.java

      ********************************************************************************

            sbauersunw Stefan Bauer (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: