Commit Graph
18 Commits
Author SHA1 Message Date
Tim Jacomb 62d8d525c7 Switch to forking jvm for development mode with hpi:run (#27239) 2026-08-15 21:55:31 +01:00
strangelookingnerdandMark Waite 4a2f5f24b9 Migrate code base to Java 21 (#26075)
* Replace if-cascades with switch

* Reference to empty collection field replaced with method call (Java 5)

* Anonymous type replaced with lambda (Java 8)

* Replaced lambda with method reference (Java 8)

* Statement lambda replaced with expression lambda (Java 8)

* Loop replaced with 'Collection.removeIf()' (Java 8)

* Null check replaced with method call (Java 9)

* Statement replaced with enhanced 'switch' (Java 14)

* Use text blocks (Java 15)

* Use pattern variable (Java 16)

* Replace if-cascades with switch

* Use 'Comparator' combinator

* Null check replaced with method call (Java 9)

* Use pattern variable (Java 16)

* Use record pattern (Java 21)

* Use SequencedCollection method (Java 21)

* Replaced lambda with method reference (Java 8)

* Cleanup unused imports

* Cleanup migrations (move comments, formatting, spotbugs...)

* Remove duplicate comment

Resolve GitHub Copilot review comment

* Remove blank line that may confuse Copilot

* Inject comments into source line

Attempt to satisfy GitHub Copilot

Complains about unreachable code

* Simplify with return value of switch statement

* Use pattern matching instanceof in one more case

* Don't lose the NetBeans comment that was there before

* Remove TODO for Java 21 pattern use, implemented

* Align comments with Unicode character they describe

---------

Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2026-01-23 23:31:47 -07:00
5312d243cb Require Java 21 or newer (#26018)
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2026-01-03 17:42:13 +01:00
7e6c5740ec Enable Java 25 support (#11148)
* Bump winstone to get Jetty 12.1.1

* Accept to start Jenkins with Java 25

* Build with Java 25

* Remove inaccurate javadoc that includes an incorrect link

The Javadoc comment said:

> When executing the resulting Callable, it executes
> FileCallable#act(FileCallable) on this FilePath.

The FileCallable interface does not have an `act(FileCallable)` method.
That absence causes the Javadoc generation to fail on Java 25.

There is a `FilePath.act(FileCallable)` method that could be inserted
instead, but I'm not confident the comment would then be correct.

Testing done:

Confirmed that Javadoc generation fails on Java 25 without this change.

Confirmed that Javadoc generation passes on Java 25 with this change.

(cherry picked from commit 3fdf9c18db)

* Temporary fix for javadoc build

* Bump winstone to 8.14

* Update Jenkinsfile

---------

Co-authored-by: Bruno Verachten <gounthar@gmail.com>
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2025-10-24 09:29:31 -06:00
Basil Crow 75f6c56c77 Require Java 17 or newer (#9358) 2024-06-11 15:52:23 +01:00
James NordandJesse Glick 94f715407c Ensure ClassLoaders have names for debugging (#9277)
* Ensure Classloaders have names for debugging

* update incremental version

* simplify name of UberClassloader and update since TODOs

Co-authored-by: Jesse Glick <jglick@cloudbees.com>

* use released version of remoting

* set the minimum version of remoting

* pick up backward compatable remoting version

* update from remoting incremental version to release version

https://github.com/jenkinsci/remoting/releases/tag/3248.v65ecb_254c298

---------

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2024-05-18 09:20:56 -06:00
Basil Crow 46514cc234 Clean up executable package (#9251) 2024-05-10 17:55:28 -06:00
Basil Crow 02502e28b6 Automate Java version recommendation administrative monitor (#8526)
* Automate Java version recommendation administrative monitor

* Improve dates
2023-09-29 10:33:03 -06:00
Basil Crow ec32c159e2 Add Java 21 to supported Java versions (#8365) 2023-08-12 19:54:39 -07:00
Alexander Brandes 399b0d8587 Remove Java 7 Spotbugs suppression 2022-12-30 13:59:06 +01:00
Basil Crow ffe99f00b8 De-duplicate file-based logging implementations (#7256) 2022-12-23 09:41:39 -08:00
Basil Crow 4c0508d371 Clean up executable.Main#getHomeDir (#7458) 2022-12-02 08:15:11 -08:00
Basil Crow efb0eaa52c Remove unnecessary SpotBugs exclusions (#7437) 2022-11-22 07:38:31 -08:00
Basil Crow b00bab5815 Document missing options (#7246) 2022-10-12 07:58:59 -07:00
Basil Crow 9f152c88e7 Improve error message when running on unsupported Java version (#7185) 2022-10-03 20:16:26 +01:00
Alexander Brandes 4add7befa3 Fill in recent @since annotations (#7059) 2022-09-03 09:16:25 -07:00
Basil Crow 2d70e77132 ZipFile.name trick did not work, using fallback: java.lang.NullPointerException (#6757) 2022-07-03 18:26:26 -07:00
Basil Crow ed0ce3877c Inline executable-war (#6706) 2022-07-02 09:10:20 -07:00