Sitelet https://github.com/googleapis/sdk-platform-java/pull/3688
Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

chore: add java 8 compatibility check - #3688

Merged
JoeWang1127 merged 4 commits into
mainfrom
chore/java-comp-check
Mar 10, 2025
Merged

JoeWang1127 merged 4 commits into
mainfrom
chore/java-comp-check

Conversation

@JoeWang1127

@JoeWang1127 JoeWang1127 commented Mar 10, 2025 •

Copy link
Copy Markdown
Contributor

b/368579018

@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Mar 10, 2025
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

find . -type f -name "*.class" -path "*/classes/*" \
-not -path "*/grpc-*/*" \
-not -path "*/proto-*/*" \
-not -path "*/gapic-generator-java/*" -print |\

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The class file in gapic-generator-java is not Java 8 compatible.

@JoeWang1127
JoeWang1127 marked this pull request as ready for review March 10, 2025 17:56
@JoeWang1127
JoeWang1127 requested a review from suztomo March 10, 2025 17:56
-not -path "*/gapic-generator-java/*" -print |\
while IFS= read -r class_file; do
version=$(javap -v "${class_file}" | grep "major version" | cut -d ' ' -f 5)
if [[ "${version}" != "52" ]]; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Technically it should be greater-than comparison.

@JoeWang1127
JoeWang1127 merged commit 5192426 into main Mar 10, 2025
@JoeWang1127
JoeWang1127 deleted the chore/java-comp-check branch March 10, 2025 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants