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

Incorrect code generated for interfaces inherited from a typedef

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.0
    • other-libs
    • x86
    • windows_nt



      Name: krT82822 Date: 08/10/99


      Here is the idl code that I ran through the compiler:

      interface A {
          
      };

      interface B {
          typedef A C;
      };

      interface D : B::C {
      };

      module E {
          module F {
              interface G {
              };
          };
      };

      interface H : E::F::G {
      };

      interface I : ::A {
      };

      typedef A J;

      interface K : J {
      };


      The idl compiler generated the following code for classes D and K:

      public interface D
          extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity,
      BPackage.C {
      }

      public interface K
          extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity,
      J {
      }

      Because Java doesn't support typedefs and classes BPackage.C
      and J were never generated, here is what should have been
      generated:

      public interface D
          extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity,
      A {
      }

      public interface K
          extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity,
      A {
      }
      (Review ID: 85537)
      ======================================================================

            Unassigned Unassigned
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: