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

Incorrect repository ID for class name that contains illegal IDL character

XMLWordPrintable

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

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

      tuong.nguyen@eng 2000-10-23

      - Spec. reference:
        
         OMG ptc/00-01-06 Java to IDL mapping, section 1.3.5.7, page 1-18

      - Problem description:

         The repository ID produced for the Java class that contained illegal OMG
         IDL identifier characters such as '$' or Unicode characters outside ISO Latin
         1 was wrong. According to the spec. section 1.3.5.7, page 1-18, user would
         expect to see single back slash '\', unfortunately, the output below
         displayed double back slash.

         #pragma ID TU0024est2 "RMI:T\\U0024est2:D8FA068C8CCABB38:984898DBE4E89A3E"
                                     ^^
                                      |--- According to the spec. it should be \U0024

         Below are the complete output:

      (tuongn@bonnelle) [7:05pm] repositoryId01 [206] % cat Test1.java

      // OMG ptc/00-01-06 - 1.3.5.7 Repository ID

      import java.io.*;

      public class Test1 implements Serializable {
          private T$est2 test2;
      }

      class T$est2 implements Serializable {
          private int i1;
      }
      (tuongn@bonnelle) [7:10pm] repositoryId01 [207] % /usr/local/java/jdk1.4/solsparc/bin/rmic -idl Test1
      (tuongn@bonnelle) [7:11pm] repositoryId01 [208] % ls -l T*.idl
      -rw-r--r-- 1 tuongn green 360 Oct 23 19:11 TU0024est2.idl
      -rw-r--r-- 1 tuongn green 427 Oct 23 19:11 Test1.idl
      (tuongn@bonnelle) [7:11pm] repositoryId01 [209] % cat TU0024est2.idl
      /**
       * TU0024est2.idl
       * Generated by rmic -idl. Do not edit
       * Monday, October 23, 2000 7:11:41 PM PDT
       */

      #include "orb.idl"

      #ifndef __TU0024est2__
      #define __TU0024est2__



          valuetype TU0024est2 {
          
              private long i1;
              factory create( );
          
          };

      #pragma ID TU0024est2 "RMI:T\\U0024est2:D8FA068C8CCABB38:984898DBE4E89A3E"


      #endif

      (tuongn@bonnelle) [7:12pm] repositoryId01 [210] %

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

      ###@###.### 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/ValueTypes/repositoryId01/Test1.java

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

            eandersosunw Everett Anderson (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: