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

azure-storage-blob unit tests cannot be compiled under JDK 17 #6551

Closed
JonathanGiles opened this issue Nov 26, 2019 · 5 comments
Closed

azure-storage-blob unit tests cannot be compiled under JDK 17 #6551

JonathanGiles opened this issue Nov 26, 2019 · 5 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. help wanted This issue is tracking work for which community contributions would be welcomed and appreciated Storage Storage Service (Queues, Blobs, Files)

Comments

@JonathanGiles
Copy link
Member

JonathanGiles commented Nov 26, 2019

Because the unit tests for azure-storage-blob are written in Groovy, they introduce a non-standard toolchain into the build system. This results in a build failure under JDK 17 with the following terminal output:

[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ azure-storage-blob ---
[INFO] Changes detected - recompiling the module!
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
[INFO] release 11 is not found in the system

This is visible when executing a build with the following command: mvn -f pom.client.xml clean package -DskipTests.

The expected outcome is that the azure-storage-blob unit tests will compile under any version of the JDK, from JDK 8 up to the latest release.

@JonathanGiles JonathanGiles added the Storage Storage Service (Queues, Blobs, Files) label Nov 26, 2019
@joshfree joshfree added Client This issue points to a problem in the data-plane of the library. help wanted This issue is tracking work for which community contributions would be welcomed and appreciated labels Jul 16, 2020
@mclay
Copy link
Contributor

mclay commented Sep 25, 2020

please assign me this issue

@leoger
Copy link

leoger commented Oct 10, 2020

This is visible when executing a build with the following command: mvn -f pom.client.xml clean package -DskipTests.

I have an alternate repro to report since I don't see any file named pom.client.xml in the repo. ( And git log --diff-filter=D --summary | grep -e 'delete.*pom.client' shows me that there has only been one such file deleted but it was in keyvault, not azure-storage-blob.)

# optional 
SKIP_STUFF="-Dcheckstyle.skip -Dgpg.skip -Dmaven.javadoc.skip -Drevapi.skip -DskipSpringITs -DskipTests -Dspotbugs.skip"

# the core of the repro
mvn -X install -f pom.xml -pl :azure-storage-blob $SKIP_STUFF

@leoger
Copy link

leoger commented Oct 10, 2020

@mikeharder mikeharder changed the title azure-storage-blob unit tests cannot be compiled under JDK 13 azure-storage-blob unit tests cannot be compiled under JDK 17 Sep 15, 2021
@mikeharder
Copy link
Member

@kasobol-msft: Can someone please take a look and see how easy this is to fix? It is blocking our adoption of JDK 17 LTS.

@JonathanGiles reported the following:

I see things progress if I pull forward the dependency versions of groovy-eclipse-compiler and groovy-eclipse-batch, but it then results in test compilation failures (15 warnings on my machine). For the record, I went to these versions: groovy-eclipse-compiler: 3.7.0 and groovy-eclipse-batch: 3.0.8-01

@kasobol-msft
Copy link
Contributor

This has been addressed in
#24471
#24477

image

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. help wanted This issue is tracking work for which community contributions would be welcomed and appreciated Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

7 participants