BACKEND·중요도 7·2026. 08. 10.·InfoQ
Project Valhalla's First Preview: JEP 401 Redefines == for Java Objects
── KO ──────────────────
JEP 401은 자바 객체에 대한 새로운 값 객체를 도입합니다.
JEP 401은 JDK 28에 통합된 값 객체를 소개합니다. 이 새로운 클래스 인스턴스는 final 필드, 변경된 동등성 검사 동작 및 더 엄격한 생성 및 동기화 규칙을 특징으로 합니다. 이를 통해 효율성을 높이고 메모리 할당 비용을 줄이는 것을 목표로 하고 있습니다. 그러나 미리보기 기능은 기본적으로 비활성화되어 있으며 컴파일과 실행 시 특정 구성이 필요합니다.
── EN ──────────────────
JEP 401 introduces value objects for Java, enhancing efficiency and reducing memory costs.
JEP 401, integrated into JDK 28, introduces value objects that feature final fields, altered equality check behaviors, and stricter construction and synchronization rules. Its aim is to enhance efficiency and reduce memory allocation costs. However, the preview is disabled by default, requiring specific configurations during compile and runtime.