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

[breaking] Enforce @NotNull annotations at runtime #537

Merged

Conversation

sergej-koscejev
Copy link
Collaborator

@sergej-koscejev sergej-koscejev commented Aug 5, 2022

Switches the default compiler to IntelliJ (<javac2> Ant task). Javac2 instruments code to ensure that @NotNull variables are never null at run time.

This is a breaking change because code that used to work before may start throwing exceptions now. However, it is likely that such code didn't work before anyway and it will now throw exceptions earlier in the call stack.

* Remove unnecessary dependency on IDEA and MPS build scripts other than
  `mps`.
* Set Java compliance level to 11 in tests.
* Add missing plugin to layout.
* Mark a test solution as containing tests.
@sergej-koscejev sergej-koscejev changed the base branch from master to maintenance/mps20211 August 5, 2022 11:19
@sergej-koscejev
Copy link
Collaborator Author

@slisson modelix/mpsbuild needs an option to generate javac2 tasks to remain consistent with the MPS-generated builds.

@sergej-koscejev sergej-koscejev changed the title Enforce @NotNull annotations at runtime [BREAKING] Enforce @NotNull annotations at runtime Aug 5, 2022
@sergej-koscejev sergej-koscejev changed the title [BREAKING] Enforce @NotNull annotations at runtime [breaking] Enforce @NotNull annotations at runtime Aug 5, 2022
@sergej-koscejev sergej-koscejev changed the base branch from maintenance/mps20211 to maintenance/mps20213 November 3, 2023 09:11
@sergej-koscejev
Copy link
Collaborator Author

modelix/mpsbuild no longer used in the build so the comment about it doesn't apply

Copy link
Collaborator

@alexanderpann alexanderpann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I don't see a reason why we can't merge anymore.

@sergej-koscejev sergej-koscejev merged commit ae345cb into maintenance/mps20213 Nov 7, 2023
1 check passed
@sergej-koscejev sergej-koscejev deleted the feature/enforce-not-null-with-javac2 branch November 7, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants