Skip to content

Conversation

@gounthar
Copy link

@gounthar gounthar commented Dec 14, 2023

Java 21 was released Sep 19, 2023. We want to announce full support for Java 21 and would like the most used plugins to be compiled and tested with Java 21.

The acceptance test harness and plugin bill of materials tests are already passing with Java 21. This is a further step to improve plugin readiness for use with Java 21 and for development with Java 21.

The change intentionally tests only two Java configurations, Java 17 and Java 21 because we believe that the risk of a regression that only affects Java 11 is shallow. We generate Java 11 byte code with the Java 17 and the Java 21 builds, so we're already testing Java 11 byte code.

Testing done

Confirmed tests pass with Java 21 on Linux.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

…plugins into distinct steps. It allows modernizing all tooling up to the last versions that supported Java 8. This can then be followed by another recipe that makes the jump to Java 11."
…plugins into distinct steps. It allows modernizing all tooling up to the last versions that supported Java 8. This can then be followed by another recipe that makes the jump to Java 11."
…uctor of SectionedViewSection. This is a potential issue because if a subclass overrides this method, the overridden version will be called before the subclass constructor has run, which can lead to unexpected behavior or errors.

In the corrected code, I've replaced the call to initJobFilters in the constructor with the code that initJobFilters would execute. This ensures that the jobFilters field is initialized correctly without calling an overridable method.
@gounthar gounthar marked this pull request as ready for review December 15, 2023 17:05
@gounthar
Copy link
Author

The build fails because this PR is not compatible with JDK8 anymore.
Please replay these PR checks with the content of the supplied Jenkinsfile.

@NotMyFault NotMyFault requested a review from mbSmaga December 16, 2023 09:24
Copy link
Contributor

@mbSmaga mbSmaga left a comment

Choose a reason for hiding this comment

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

Thanks for your work! Before merging, I'd like to take some time for testing those changes if that's ok. In the meantime, could you please clean up the git commit history?

gounthar and others added 3 commits December 17, 2023 18:48
"This recipe is intended to break down the modernization of very old plugins into distinct steps. It allows modernizing all tooling up to the last versions that supported Java 8. This can then be followed by another recipe that makes the jump to Java 11."

Commons lang

More recent version of mockito.

Compiles

JDK21

JDK21

fdfsfs

Removed SpotBugs issues.

Removed SpotBugs found issues.

Removed SpotBugs found issues.

Use https: for scm URL, not git:

Corrected SpotBugs found issues.

Increase SpotBugs checks.

The overridable method initJobFilters is being called from the constructor of SectionedViewSection. This is a potential issue because if a subclass overrides this method, the overridden version will be called before the subclass constructor has run, which can lead to unexpected behavior or errors.

In the corrected code, I've replaced the call to initJobFilters in the constructor with the code that initJobFilters would execute. This ensures that the jobFilters field is initialized correctly without calling an overridable method.

Automate dependency updates

Publish incremental development artifacts

Scan all items for matching regular expression

Implement the option to execute the regular expression on all jobs (old
behavior)

Match the name of existing option from List View for consistency

Update changelog

[maven-release-plugin] prepare release sectioned-view-1.26

[maven-release-plugin] prepare for next development iteration

Update changelog

Update src/main/java/hudson/plugins/sectioned_view/FolderViewSection.java

Co-authored-by: Michał Smaga <[email protected]>
@mbSmaga
Copy link
Contributor

mbSmaga commented Jan 3, 2024

Hi @gounthar, are you still working on that? Have you seen comments above? I could take over if you are busy with other things.

@offa offa mentioned this pull request Mar 1, 2024
7 tasks
@mawinter69 mawinter69 mentioned this pull request Jul 28, 2024
6 tasks
@basil basil requested a review from a team as a code owner October 7, 2024 23:51
@basil basil closed this in #42 Oct 9, 2024
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.

4 participants