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

TypeCode.equal throws ClassCastException for object reference type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • other-libs
    • b31
    • sparc
    • solaris_1
    • Not verified

        ******************************************************************************
        ###@###.### 2003-08-11

        build : /java/re/rip_int_generic/1.0/promoted/fcs/b13/binaries/solsparc

        Problem description:

        This is recent regression in ripint-generic. Typecode.equal on a object reference type causes ClassCastException

        the problems is com.sun.corba.se.impl.corba.TypeCodeImpl.java
        733 if (_id.compareTo(_orb.get_primitive_tc(_kind)) == 0) {
        ^^^^^^^ comparing string to typecode
        734 return true;
        735 }
        736
        737 if (tc.id().compareTo(_orb.get_primitive_tc(_kind)) == 0) {
        738 return true;
        739 }

        test :
        api_javaidl_AnyTC_LocalAnyTest:Test19

        error trace :
        java.lang.ClassCastException
                at java.lang.String.compareTo(String.java:777)
                at com.sun.corba.ee.impl.corba.TypeCodeImpl.equal(TypeCodeImpl.java:733) at api.javaidl.AnyTC.LocalAnyTest.objectTest(LocalAnyTest.java:1421)
                at api.javaidl.AnyTC.LocalAnyTest.run(LocalAnyTest.java:86)
                at java.lang.Thread.run(Thread.java:534)

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

              hputtaswsunw Hemanth Puttaswamy (Inactive)
              smanuel Sony Manuel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: