WARNING: A Java agent has been loaded dynamically (/Users/mihi/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.14.12/be4984cb6fd1ef1d11f218a648889dfda44b8a15/byte-buddy-agent-1.14.12.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
JDK17로 작업했던 코드를 JDK21로 실행하니 발생하는 경고..
https://belief-driven-design.com/looking-at-java-21-feature-deprecations-03fff/
해당 링크의 The Problem With Dynamic Loading 항목에서 동일한 오류가 나는 경우를 확인할 수 있다.
JDK 21에서 여전히 동적 에이전트 로딩이 가능하지만, 이후 버전에선 사용 불가능할 거라는 얘기.
경고문구라 실제 실행에는 큰 영향이 없지만, 우선은 작업하던 대로 17버전으로 변경하기루.
해당 설정에서 변경할 수 있다.
인텔리제이에서 다운받을 수 있는 JDK 17버전엔 Oracle open지원은 없길래, Amazon Corretto에서 지원하는 걸로 다운받았음.
실행하니 Dynamic Loading 관련 경고는 없어짐
남은 경고문구는 어플리케이션 구동에 직접적인 영향을 미치지 않는 문제라 해서 차차 해결하기로.
OpenJDK 64-Bit Server VM warning 해결