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

incorrect cyclic inheritance error versus name hiding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 5.0
    • 1.4.2
    • tools
    • tiger
    • generic
    • solaris_8

    Description

      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

      Attachments

        Activity

          People

            gafter Neal Gafter
            gafter Neal Gafter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: