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

refactor(azure): fix incompatible generic type issue faced during upgrade to springboot 2.5.15 #6086

Merged
merged 1 commit into from Nov 1, 2023

Conversation

j-sandy
Copy link
Contributor

@j-sandy j-sandy commented Nov 1, 2023

While upgrading springboot 2.5.15, encounter below error in clouddriver-azure module:

startup failed:
/clouddriver/clouddriver-azure/src/main/groovy/com/netflix/spinnaker/clouddriver/azure/client/AzureNetworkClient.groovy: 234: [Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.lang.Object> to: java.util.Collection <AzureAppGatewayDescription>
 @ line 234, column 5.
       result
       ^

/clouddriver/clouddriver-azure/src/main/groovy/com/netflix/spinnaker/clouddriver/azure/security/AzureCredentialsInitializer.groovy: 63: [Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.lang.Object> to: java.util.List <AzureNamedAccountCredentials>
 @ line 63, column 5.
       azureAccounts
       ^

2 errors

> Task :clouddriver-azure:compileGroovy FAILED

To fix this issue use explicit typecasting of relevant variable.

…rade to springboot 2.5.15

While upgrading springboot 2.5.15, encounter below error in clouddriver-azure module:
```
startup failed:
/clouddriver/clouddriver-azure/src/main/groovy/com/netflix/spinnaker/clouddriver/azure/client/AzureNetworkClient.groovy: 234: [Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.lang.Object> to: java.util.Collection <AzureAppGatewayDescription>
 @ line 234, column 5.
       result
       ^

/clouddriver/clouddriver-azure/src/main/groovy/com/netflix/spinnaker/clouddriver/azure/security/AzureCredentialsInitializer.groovy: 63: [Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.lang.Object> to: java.util.List <AzureNamedAccountCredentials>
 @ line 63, column 5.
       azureAccounts
       ^

2 errors

> Task :clouddriver-azure:compileGroovy FAILED
```
To fix this issue use explicit typecasting of relevant variable.
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for a merge label Nov 1, 2023
@mergify mergify bot added the auto merged Merged automatically by a bot label Nov 1, 2023
@mergify mergify bot merged commit d2e83e4 into spinnaker:master Nov 1, 2023
17 checks passed
@j-sandy j-sandy deleted the typecast branch November 3, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.33
Projects
None yet
3 participants