[
https://issues.apache.org/jira/browse/AMBARI-25818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17651359#comment-17651359
]
Mohammad Arshad commented on AMBARI-25818:
------------------------------------------
This bug is not directly applicable to branch-2.7
But I see another problem there, ambari-serviceadviser is using java 1.7 but
other modules are using java 1.8.
I think this should be improved. Set the java version 1.8 for
ambari-serviceadviser module also. Raised the PR
https://github.com/apache/ambari/pull/3618
> Set default value for jdk.version in ambari-serviceadvisor
> ----------------------------------------------------------
>
> Key: AMBARI-25818
> URL: https://issues.apache.org/jira/browse/AMBARI-25818
> Project: Ambari
> Issue Type: Bug
> Components: service-advisor
> Reporter: Mohammad Arshad
> Assignee: Mohammad Arshad
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> import the ambari trunk into intellij
> try to run any test case.
> test case run fails with following error
> {noformat}
> java: invalid target release: 17
> Module ambari-serviceadvisor SDK 1.8 is not compatible with the source
> version 17.
> Upgrade Module SDK in project settings to 17 or higher. Open project settings.
> {noformat}
> This is because for module ambari-serviceadvisor language level got set
> wrongly to 17.
> Setting default value for jdk.version in ambari-serviceadvisor solves this
> problem.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]