Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222777 JEP 359: Records (Preview)
  3. JDK-8236439

Release Note: JEP 359: Records (Preview)

    XMLWordPrintable

Details

    • Verified

    Description

      In JDK 14, the [Records (JEP 359)](https://openjdk.java.net/jeps/359) preview feature adds a new class `java.lang.Record`. The `java.lang` package is implicitly imported on demand, that is, `import java.lang.*`. If code in an existing source file imports some other package on demand, for example, `import com.myapp.*;`, and that other package declares a type called `Record`, then code in the existing source file which refers to that type will not compile without change. To make the code compile, import the other package's `Record` type using a single-type import, for example, `import com.myapp.Record;`.

      Attachments

        Activity

          People

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: