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

fix!: when allowInheritance is true, java now renders setters in interfaces for enums if const is not set by the classes that implements it #2096

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

kennethaasan
Copy link
Collaborator

Description

#2068 introduced some breaking changes for the Java code that Java users didn't like. They want setters when they can exist, and this fixes that.

In Java, when a class implements an interface, it must implement all the methods of that interface. Therefore, if allowInheritance is set to true, Modelina will no longer render the setter for enums in interfaces if the property exists in the implemented by class with a constant value.

Related Issue

Checklist

  • The code follows the project's coding standards and is properly linted (npm run lint).
  • Tests have been added or updated to cover the changes.
  • Documentation has been updated to reflect the changes.
  • All tests pass successfully locally.(npm run test).

Additional Notes

Fixes #2068

…faces for enums if const is not set by the classes that implements it
Copy link

netlify bot commented Sep 5, 2024

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit 2ab0861
🔍 Latest deploy log https://app.netlify.com/sites/modelina/deploys/66d9633e17bc7c0008edd77c

@kennethaasan kennethaasan marked this pull request as ready for review September 5, 2024 07:41
…faces for enums if const is not set by the classes that implements it
…faces for enums if const is not set by the classes that implements it
Copy link

sonarqubecloud bot commented Sep 5, 2024

@jonaslagoni jonaslagoni merged commit f6cd360 into asyncapi:next Sep 5, 2024
15 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.0-next.60 🎉

The release is available on:

Your semantic-release bot 📦🚀

@asyncapi-bot
Copy link
Contributor

🎉 This issue has been resolved in version 4.0.0-next.61 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants