Importing an inherited type doesn't work

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 1.2.0
    • Component/s: tools
    • generic
    • generic



      Name: igT44549 Date: 02/08/99


      As I understand things, the following is legal:

      package test;

      // Import all the members of X, included inherited members

      import X.*;


      class A
      {
          class B
          {
          }
      }

      class X extends A
      {
          // X inherits a class B
      }

      class C
      {
          B b; // class B is visible from here because of the import
      }

      However javac fails to find B in the field declaration.
      (Review ID: 53497)
      ======================================================================

            Assignee:
            Neal Gafter (Inactive)
            Reporter:
            Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: