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

Warning due to supported source version 'RELEASE_7' from annotation processor #1653

Closed
RohitJ23 opened this issue May 11, 2017 · 12 comments · Fixed by Azure/autorest-clientruntime-for-java#648
Labels
Mgmt This issue is related to a management-plane library.
Milestone

Comments

@RohitJ23
Copy link

I get this warning during compilation while using the SDK with JDK 1.8:
Supported source version 'RELEASE_7' from annotation processor 'com.microsoft.azure.management.apigeneration.LangDefinitionProcessor' less than -source '1.8'.

In the readme, prerequisites include "A Java Developer Kit (JDK), v 1.7 or later".

Is there a reason for having this restriction in place? If not can it be removed?

@sebeard
Copy link

sebeard commented Jun 29, 2017

Java 7 has been EOL since April 2015!! Surely this needs updating to Java 8 ASAP given that the latest release was done in May 2017 (version 1.1.0)

@martinsawicki martinsawicki added this to the Backlog milestone Aug 1, 2017
@praries880 praries880 added the Mgmt This issue is related to a management-plane library. label Nov 14, 2018
@jvano
Copy link

jvano commented Feb 25, 2019

If you’re currently running Java apps on-premise or with other JDKs, consider moving it to Zulu on Azure for continued support and maintenance.

For more info:
https://azure.microsoft.com/en-us/blog/microsoft-and-azul-systems-bring-free-java-lts-support-to-azure/

@jacqueslorentz
Copy link

jacqueslorentz commented Nov 26, 2019

Hi @jvano ,

As you recommended, I moved to the Zulu JDK. However I already have the warning, with both JDK 8 and 11.
What can I do, I really appreciate to set the flag in the maven compilation options.

Thanks!

@jvano
Copy link

jvano commented Nov 26, 2019

@selvasingh, can you help us with this case with Zulu? It is in the context of the Azure SDK for Java

@ChenTanyi
Copy link
Contributor

@jacqueslorentz do you mean you meet the warning in Zulu JDK 8? Or you meet it in Oracle / Open JDK 8?
And can you share your code snippet about it? I cannot compile any maven project with this error in Oracle JDK 8.

@jacqueslorentz
Copy link

jacqueslorentz commented Nov 28, 2019

I use the Zulu JDK 8 and 11, for two distinct projects and I have this warning with both, with this maven build configuration in my pom.xml:

...
<build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.8.1</version>
                    <configuration>
                        <release>${java.version}</release>
                        <showWarnings>true</showWarnings>
                        <!--<failOnWarning>true</failOnWarning> CANNOT COMPILE WITH IT-->
                    </configuration>
                </plugin>
                ...
           </plugins>
      </pluginManagement>
</build>

We need to use the Zulu JDK to match with Azure Pipelines environnement.

@nab-os
Copy link

nab-os commented Dec 3, 2019

Same warning here !
I use Zulu JDK 11 with spring-boot-azure-starter current version.
Any solution ?

@ChenTanyi
Copy link
Contributor

The azure-annotations hard code to support RELEASE_7, will fix later (many dependency need to upgrade).
Now, this warning could only be ignore.

@ChenTanyi
Copy link
Contributor

fix in 1.29.0

@martin-mfg
Copy link

@ChenTanyi
Thanks for your work!
Will this change also come to com.microsoft.azure:azure-eventhubs?

@ChenTanyi
Copy link
Contributor

@martin-mfg This change is included in the azure-client-authentication:1.7.0 and the Fluent Java 1.29.0, if you want other specific sdk to be fixed, you could request them to update the client runtime. like azure-eventhubs

@yaohaizh
Copy link
Contributor

@joshfree , @conniey @srnagar @mssfang for eventhub libraries. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.