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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: