New Java Language Features with Eclipse
summary
Six-month Java releases add concrete features (instanceof patterns, switch expression yields a value, records, sealed types) and Eclipse updates the Eclipse Compiler for Java and JDT to support them. Records generate constructors/accessors/hashCode at compile time and records require VM changes; implementing records and sealed types surfaces about 25 compile errors during testing. Eclipse adds a record-creation wizard that needs the --enable-preview project flag, a quick-fix to convert mistyped return to yield, and clearer NPE messages that name the null field.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:07Java language changes
- 3:35Pattern related features
- 6:44Instance of pattern
- 9:16Switch expressions
- 13:50Yield statement
- 15:36Records in Java
- 17:42Sealed classes
- 20:11Eclipse IDE features
- 21:15JDT compiler updates
- 22:43Formatter improvements
- 24:10Quick fixes in Eclipse
- 25:35Null pointer details
- 27:01Resources and links
- 27:45Q&A and closing
related talks
52mJava Language Futures
42mJava Language update
01h 02mThe Amazing Features of Modern Java
36mJava Language Futures - Mid 2020 Edition
51m#JavaNext Language Features
36mWhy New Java is Not the New COBOL
25mThe New Excitement Around the Good Old Java
01h 11mModern Java: This is not your father's Java anymore
