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

Different error message should be generated if cyclic inheritance logic involves Object class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: tools

      Description

      During work on JDK-8055079 for creation of golden files for negative tests, it was suggested to improve error message for test cases with cyclic inheritance. Test: langtools/test/tools/javac/Object2.java
      Golden file for this test will require updates once this issue is fixed.

      Current error diagnostic:
      Object2.java:11:25: compiler.err.cyclic.inheritance: java.lang.Cloneable
      1 error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              sogoel Sonali Goel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: