Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure IntelliJ to work with Java 14 and records

I have tried to make IntelliJ work with SDK-14, but I am obviously having problems getting records to work. Since the release date is in March, I would think that the good people at Jetbrains are close to having a version that works with SDK-14. I need to run SDK 14 with --enable-preview. I have googled for a couple of days without any luck.

I had some luck with Sublime, but I miss code-completion. If there are other options, please feel free to mention them.

like image 360
thomas77 Avatar asked Mar 03 '23 00:03

thomas77


1 Answers

UPDATE: The first 2020.1 EAP with Records support is released.

IntelliJ IDEA support for Records (JEP 359) is work in progress and will be available in 2020.1 release (EAP for this version should start in January 2020, release is planned for March-April 2020).

Related tickets:

  • IDEA-228462 Rename record components
  • IDEA-229318 Adapt C-style array declaration for record component
  • IDEA-229706 Formatter for Java 14 Records
  • IDEA-229841 Records: report redundant constructors
  • IDEA-229842 Convert compact constructor to canonical
  • IDEA-229843 Change signature refactoring for records
  • IDEA-229844 Quick documentation support for record components
  • IDEA-229921 .class stubs for JEP 359 "Records"
  • IDEA-223110 Implement parser for JEP 359: Records (Preview) in Java
  • IDEA-228460 Error highlighting for records
  • IDEA-229297 Add Java 14 records to "New Java class" view
  • IDEA-229300 Code completion support for records
  • IDEA-229320 Heap pollution warning for records
  • IDEA-229792 Support record declaration in complete statement
  • IDEA-229795 Support record creation on UML diagrams
  • IDEA-229796 Create record from usage
  • IDEA-229889 Highlight usages for Record components
  • IDEA-229694 Generate constructor for records: suggest generation of compact and canonical constructors
  • UX-1087 Add icon for java Record
like image 175
CrazyCoder Avatar answered Mar 05 '23 16:03

CrazyCoder