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

org.omg.CORBA.ORB doc probs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.3.0
    • docs
    • rc1
    • generic
    • generic
    • Verified



      Name: naC79102 Date: 10/25/99

      The documentation for the create_string_tc(int bounds) method
      in org.omg.CORBA.ORB class states that the method throws a BAD_PARAM
      exception if zero is supplied as a parameter. However this behaviour is not
      seen.

      import org.omg.CORBA.ORB;
      import org.omg.CORBA.TypeCode;

      public class Test {
       public Test() {
        try {
            ORB orb = ORB.init();

         int bound = 0;
         TypeCode type = orb.create_string_tc(bound);

         System.out.println("orb.create_string_tc(0) .... BAD_PARAM not got!");

        }
        catch (org.omg.CORBA.BAD_PARAM badExc) {
         System.out.println("orb.create_string_tc(0) .... BAD_PARAM got");
        }
       }

       public static void main(String[] args) {
        new Test();
       }
      }

      ======================================================================

      Name: naC79102 Date: 10/25/99

      The same problem is seen in
      org.omg.CORBA.ORB.create_wstring_tc(int bounds)


      ======================================================================

            mfishersunw Maydene Fisher (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: