Skip to content

NIAD-3321: Update java to version 21#201

Merged
MartinWheelerMT merged 19 commits into
mainfrom
niad-3321-bump-java-version
Apr 25, 2025
Merged

NIAD-3321: Update java to version 21#201
MartinWheelerMT merged 19 commits into
mainfrom
niad-3321-bump-java-version

Conversation

@MartinWheelerMT

@MartinWheelerMT MartinWheelerMT commented Apr 25, 2025

Copy link
Copy Markdown
Collaborator

Description

  • Update java / spring version to 21 in build.gradle.
  • Update other packages to the latest compatible version in build.gradle.
  • Update application.yml with compatible syntax for JMS on java 21.
  • Update Gradle version to 8.7.
  • Update test.yml in the GitHub workflow to use java 21 in all cases.
  • Update javax packages to jakarta.
  • Update classes to final where required by CheckStyle.
  • Address new Spotbugs issues and supress false positives related to concurrency on mutable objects.

Jira Ticket

NIAD-3211: Bump Java Version

Checklist

These are items (excluding GitHub Checks) which should be confirmed before a branch is ready to merge.

  • Acceptance Criteria met
  • Commit messages are meaningful
  • Manually tested
  • Self-reviewed your code
  • Code reviewed from one other developer
  • Add/update any relevant documentation

* Update java / spring version to 21 in `build.gradle`
* Update other packages to the latest compatible version in `build.gradle`
* Update application.yml with compatible syntax for JMS on java 21.
* Update Gradle version to `8.7`
* Update `test.yml` in the GitHub workflow to use java 21 in all cases.
* Update `javax` packages to `jakarta`
* Update classes to `final` where required by checkstyle
* Update `CHANGELOG.md`.
* Update `README.md` to reflect the Java version updated.
* Update spotbugs to a version compatible with Java 21.
* Address bug `EI_EXPOSE_REP2: May expose internal representation by incorporating reference to mutable object This code stores a reference to an externally mutable object into the internal representation of the object.  If instances are accessed by untrusted code, and unchecked changes to the mutable object would compromise security or other important properties, you will need to do something different. Storing a copy of the object is better approach in many situations.`
Address bug: `This code stores a reference to an externally mutable object into the internal representation of the object.  If instances are accessed by untrusted code, and unchecked changes to the mutable object would compromise security or other important properties, you will need to do something different. Storing a copy of the object is better approach in many situations.`
@MartinWheelerMT
MartinWheelerMT force-pushed the niad-3321-bump-java-version branch from 11d2b51 to 3b0012a Compare April 25, 2025 09:49
* Supress false positive spotbugs warning for parameter dependency injection.
* Update java version in Dockerfile
* Fix issue .copy() and null when copying the bundle
* Update grade to 8.7 in `Dockerfile.tests`
* Revert spotbugs fix
* update hapi fhir base version in `build.gradle`
public Error(Message message, Exception e) {
super(message);
this.exception = exception;
this.exceptionMessage = e.getMessage();

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addresses spotbugs issue for mutable object


public Section(final List<String> edifactSegments) {
this.edifactSegments = edifactSegments;
this.edifactSegments = new ArrayList<>(edifactSegments);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addresses spot bugs issue relating to mutable objects.

* Suppress spotbugs warning for Bundle which is not accessed concurrently
* Suppress spotbugs warning for Bundle which is not accessed concurrently
@github-actions

Copy link
Copy Markdown

Images built and published to ECR using a Build Id of PR-57-697e8c6

@MartinWheelerMT MartinWheelerMT changed the title NIAD-3321: bump java version NIAD-3321: Update java to version 21 Apr 25, 2025
@MartinWheelerMT
MartinWheelerMT enabled auto-merge (squash) April 25, 2025 13:24
@MartinWheelerMT
MartinWheelerMT merged commit a3254a9 into main Apr 25, 2025
@MartinWheelerMT
MartinWheelerMT deleted the niad-3321-bump-java-version branch April 25, 2025 14:45
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