Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTERNAL: Upgrade ZK Client dependency version from 3.4.14 to 3.5.9 #664

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

uhm0311
Copy link
Collaborator

@uhm0311 uhm0311 commented Sep 5, 2023

JDK 17 이슈 대응을 위한 ZK Client 의존성 버전 업데이트입니다.

추가 변경 사항

<arg>-Xlint:-classfile</arg> <!-- For provided spotbugs in ZK Client -->

ZK Client 3.5.9에 포함된 의존성 중 하나가 scope provided로 포함되어 있습니다.
arcus-java-client 컴파일 옵션에 -Xlint:-classfile을 추가하는 이유는 위 의존성의 scope가 provided이기 때문입니다.

provided

provided는 컴파일 하는 시점에 참조되지만, 컴파일 결과물에는 포함되지 않습니다.
ZK Client 3.5.9에서 이 의존성을 사용하면서도 scope를 provided로 명시했기 때문에 ZK Client 빌드 결과물에 포함되지 않습니다.
따라서 arcus-java-client를 컴파일 하려고 하면 어노테이션을 찾을 수 없다고 컴파일 워닝이 찍힙니다.

[WARNING] Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings': class file for edu.umd.cs.findbugs.annotations.SuppressFBWarnings not found
[WARNING] Cannot find annotation method 'justification()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'justification()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'justification()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'

SupressFBWarnings 어노테이션의 Retention이 Runtime에 참조할 수 없는 어노테이션이기 때문에 컴파일 워닝을 무시해도 정상적으로 동작합니다.

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

질문 던집니다.

@@ -135,6 +135,7 @@
<arg>-Xlint:all</arg>
<arg>-Xlint:-options</arg> <!-- For warning about old java version 6. -->
<arg>-Xlint:-processing</arg> <!-- For meaningless warning about annotations -->
<arg>-Xlint:-classfile</arg> <!-- For provided spotbugs in ZK Client -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

질문입니다

  • classfile 관련 워닝이 빌생되지 않도록 하는 것인기요?
  • provided scope의 의존성을 가지면 classfile 관련 어떤 워닝이 발생하나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래의 워닝이 발생하며, 해당 워닝이 발생하지 않도록 하는 컴파일 옵션입니다.

[WARNING] Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings': class file for edu.umd.cs.findbugs.annotations.SuppressFBWarnings not found
[WARNING] Cannot find annotation method 'justification()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'justification()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'
[WARNING] Cannot find annotation method 'justification()' in type 'edu.umd.cs.findbugs.annotations.SuppressFBWarnings'

@jhpark816 jhpark816 merged commit b8eab3e into naver:develop Sep 5, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants