Java 10: 주요 사용 중단 API, 기능, 옵션 제거
JDK 10 릴리스는 Java 라이브러리에서 여러 사용 중단된 API, 기능, 옵션을 제거했습니다. 관련 세부 사항은 다음과 같습니다.
- 지원되지 않는 LookAndFeel 제거 - Nimbus 또는 Aqua LookAndFeel을 사용하는 애플리케이션은 새 문법으로 마이그레이션해야 합니다.
Nimbus - 기존 코드
javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
Nimbus - 새 코드
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
Aqua - 기존 코드
javax.swing.UIManager.setLookAndFeel("apple.laf.AquaLookAndFeel");
Aqua - 새 코드
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- Runtime.getLocalizedInputStream 및 getLocalizedOutputStream 메서드 제거 - 구식 국제화 메커니즘의 일부였으므로 더 이상 사용 불가
- RMI 서버 측 멀티플렉스 프로토콜 지원 제거 - Java 9에서 비활성화되었고 Java 10에서 제거
- 공통 DOM API 제거 -
com.sun.java.browser.plugin2.DOM, sun.plugin.dom.DOMObject API 제거. netscape.javascript.JSObject로 DOM 수정 가능
- FlatProfiler 제거 - Java 9에서 사용 중단되고 Java 10에서 제거
- 사용되지 않는 -X 옵션 제거 -
-Xoss, -Xsqnopause, -Xoptimize, -Xboundthreads, -Xusealtsigs 등 구식 HotSpot VM 옵션 제거
- HostServices.getWebContext 메서드 제거 - Java 9에서 사용 중단되고 Java 10에서 제거
- T2K 래스터라이저 및 ICU 레이아웃 엔진 제거 - JavaFX에서 제거
- VP6/FXM/FLV 코드 제거 - JavaFX Media에서 VP6 비디오 인코딩 형식과 FXM/FLV 컨테이너 지원 제거. 대신 MP4 컨테이너의 H.264/AVC1 또는 HTTP 라이브 스트리밍 사용
- Pre-1.2 SecurityManager 메서드 및 필드 제거 -
java.lang.SecurityManager의 pre-1.2 사용 중단 메서드와 필드(forRemoval=true) 제거
- policytool 제거 - policytool 보안 도구 제거
- com.sun.security.auth.**의 사용 중단 클래스 제거:
- com.sun.security.auth.PolicyFile
- com.sun.security.auth.SolarisNumericGroupPrincipal
- com.sun.security.auth.SolarisNumericUserPrincipal
- com.sun.security.auth.SolarisPrincipal
- com.sun.security.auth.X500Principal
- com.sun.security.auth.module.SolarisLoginModule
- com.sun.security.auth.module.SolarisSystem
- 구버전(JDK 6, 7, 8 시대) 표준 독렛 제거 - HTML 출력을 위해 사용되던 구형 표준 독렛이 대체품으로 대체되어 제거
- javah 도구 제거 - 네이티브 헤더 생성 도구
javah 제거
- Java 런처의 데이터 모델 옵션 -d32, -d64 제거 - 사용되지 않고 사용 중단된 선택 옵션(
-d32, -d64, -J-d32, -J-d64) 제거