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

Incorrect recovery attribution of record component type when j.l.Record is unavailable

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17, 18
    • 18
    • tools
    • None
    • b14

    Description

      Consider a record like:
      ---
      public record R(String s1, String s2) implements I {}
      interface I {}
      ---

      When this is attributed when j.l.Record does not exist, an error about the missing Record class is reported (correct), but the first `String` will be attributed as erroneous, which is not correct. The erroneous part is the supertype, not the component type.

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: