OpenJDK 64-Bit Server VM warning: Sharing is only ...

kongta2·2023년 12월 1일
0

Mockito를 사용하여 ProductService의 updateProduct 기능을 테스트 하려는 도중 발생한 오류이다.

발생한 오류는 2가지이다.

1. 'Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.'

위 오류는 해석하면 Deprecated(더이상 사용되지 않는)된 Gradle 기능을 사용해서 발생했다는 것같다.

해결 방법
File > Settings > Build, Exception, Deployment > Build Tools > Gradle
업로드중..
위의 부분을 Gradle에서 Inellij IDEA로 바꿔주면 해결된다.

2. 'OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended'

찾아보니 오류가 아니라 경고 메시지였고 JDK 1.8버전 이후에 추가된 기능으로, 클래스 로딩 시 Class Data Sharing(CDS)기능을 사용하면 발생한다고 한다.

해결 방법
File > Settings > Build, Exception, Deployment > Debugger > Async Stack Traces
업로드중..
위의 부분을 체크 해제하면 해결이 된다고한다.
업로드중..
DisplayName은 잘 나오는데 붉은 글씨는 계속 나온다.. 더 찾아봤지만 이 이상은 해결하지 못했다.

profile
2025.04.01~

0개의 댓글