JDK-8236439 : Release Note: JEP 359: Records (Preview)
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 14
  • Priority: P3
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2019-12-20
  • Updated: 2020-04-27
  • Resolved: 2019-12-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14Resolved
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;`.