incorrect cyclic inheritance error versus name hiding

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 5.0
    • Affects Version/s: 1.4.2
    • Component/s: tools
    • tiger
    • generic
    • solaris_8

      javac fails the following jacks test


      ==== 6.5.4.1-simple-11 If a simple package-or-type name is not in
              the scope of a type, it is reclassified as a package name FAILED
      ==== Contents of test case:

          compile [saveas p1/T6541s11a.java {
      package p1;
      public class T6541s11a {
          public class p1 {}
      }
      class T6541s11c extends p2.T6541s11b {
          // class a.p1 was not inherited, although it is accessible
          // p1 resolves to a package
          p1.T6541s11c p;
      }
          }] [saveas p2/T6541s11b.java {
      package p2;
      public class T6541s11b extends p1.T6541s11a {
          private class p1 {} // hides a.p1
      }
          }]

      ---- Result was:
      FAIL
      ---- Result should have been:
      PASS
      ==== 6.5.4.1-simple-11 FAILED

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: