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

org.omg.CORBA.TypeCode.equal() method bug

XMLWordPrintable

    • beta
    • x86
    • windows_nt



        Name: js5519 Date: 09/24/98


        The visigenic IDL compiler produces the following prototypical code for it "helper"classes.

          public static Test.NameValueList extract(org.omg.CORBA.Any any) {
            if(!any.type().equal(type())) {
              throw new org.omg.CORBA.BAD_TYPECODE();
            }
            return read(any.create_input_stream());
          }

        The jdk compiler does not have the test for the BAD_TYPECODE condition (which may be another bug!).

        However, if you try and use the visibroker code on the JDK ORB you will find that the equal() method will return false even if the two typecodes are the SAME object!

        This is a contrived example, but there does seem to be a bug in the org.omg.CORBA.TypeCode.equal() method.

        More testing should be done on this method.
        (Review ID: 39267)
        ======================================================================

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: