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

incorrect cyclic inheritance error versus name hiding

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 5.0
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: