Andy Wilkinson
01d93513c7
Merge branch '3.4.x' into 3.5.x
...
Closes gh-48226
2025-11-21 16:47:11 +00:00
Andy Wilkinson
859606ae13
Split architecture checks by language as well as source set
...
Closes gh-48224
2025-11-21 16:44:54 +00:00
Stéphane Nicoll
1ce1b7ee35
Merge branch '3.4.x' into 3.5.x
...
Closes gh-48105
2025-11-13 10:27:51 +01:00
Stéphane Nicoll
9e656c1554
Remove unnecessary field initialization
...
Closes gh-45168
Co-authored-by: CatiaCorreia catia.correia97@gmail.com
2025-11-13 10:21:05 +01:00
Phillip Webb
7c16f9ac20
Merge branch '3.4.x' into 3.5.x
...
Closes gh-47748
2025-10-21 11:28:35 -07:00
Tran Ngoc Nhan
4bebd47c4e
Fix typos
...
See gh-47747
2025-10-21 11:27:41 -07:00
Andy Wilkinson
b61e38bef8
Support launching with a parameterless main method
...
Fixes gh-47311
2025-09-24 15:16:18 +01:00
Andy Wilkinson
f28caee30d
Fix NestedJarFile.JarEntryInputStream's available() behavior
...
Previously, available() would return 0 initially and then negative
values once some data head been read. It should be a positive value
(for entries with content) initially a decrease as data is read
reaching zero once an entry's data has been read in its entirety.
This commit initialises the count of the remaining bytes to
be equal to the entry's uncompressed size. It also removes logic
that closes the stream when remaining equals zero upon read or skip.
This condition was not reached before as remaining would become
negative as soon as any data was read or skipped. With the correct
initialization of remaining, the condition is now reached and it
results in test failures due to premature closure. Furthermore, the
javadoc of read and skip do not require the stream to be closed
when the reach end of file.
Closes gh-47056
2025-09-05 17:29:22 +01:00
Phillip Webb
ea8af9af56
Fix checkstyle violation
...
See gh-46401
2025-07-10 19:42:02 -07:00
Phillip Webb
08cc62a6b6
Simplify JarFileUrlKey to prevent issues with Cortex XDR agent
...
Replace the string based `JarFileUrlKey` and cache with a simple key
built directly from URL components. This should allow cache lookups
to remain fast whilst removing any `URLStreamHandler.getHostAddress`
calls.
Prior to this commit, we assumed that it was safe to use the URL
directly as a cache key as long as it had an empty or null `host`.
This assumption isn't correct when Palo Alto Network Cortex XDR agent
is present as it appears to intercept calls to `getHostAddress`
and, unlike the JDK code, always perform a DNS lookup.
Fixes gh-46401
2025-07-10 18:05:16 -07:00
Piyal Ahmed
b9589203dc
Polish
...
Signed-off-by: Piyal Ahmed <piya.salamence@gmail.com >
See gh-46291
2025-07-07 09:31:43 +01:00
Phillip Webb
2128a84492
Never attempt to resolve local address for nested URLs
...
Update `nested:` Handler to always return `null` from `getHostAddress`
in an attempt to improve performance on Windows.
Fixes gh-46063
2025-06-23 10:37:09 -07:00
Phillip Webb
3aeb18d618
Add license header to gradle files
...
See gh-46065
2025-06-20 17:20:50 -07:00
Phillip Webb
d66b28fcba
Update end copyright year to 'present'
...
See gh-46065
2025-06-20 17:12:38 -07:00
Phillip Webb
206785f838
Only cache JarFile URL keys that are cheap to lookup
...
Update `JarFileUrlKey` so that only URLs that have a cheap `equals()`
method call are cached. This should prevent expensive DNS lookups from
being performed.
Fixes gh-46015
2025-06-18 13:46:31 -07:00
Phillip Webb
2b2228eba5
Update copyright year of changed files
2025-05-20 17:20:07 -07:00
Johnny Lim
0a54804a0f
Polish
...
See gh-45592
Signed-off-by: Johnny Lim <izeye@naver.com >
2025-05-18 09:20:33 +02:00
Phillip Webb
f21402d4c3
Consistently return non-zero exit codes for jarmode failures
...
Update jar mode launchers to catch all exceptions and return a non-zero
exit code. This refinement also allows us to consolidate the existing
error reporting logic to a central locations. Modes that wish to report
a simple error rather than a full stacktrace can throw the newly
introduced `JarModeErrorException`.
Fixes gh-43435
2024-12-06 19:00:50 -08:00
Andy Wilkinson
bb3651b7d1
Reduce warnings reported by Eclipse
...
Closes gh-43269
2024-11-22 15:39:35 +00:00
Tran Ngoc Nhan
9e92bfe906
Polish
...
See gh-42974
2024-11-02 20:20:06 +09:00
Phillip Webb
223886ff37
Merge branch '3.2.x' into 3.3.x
2024-10-18 10:48:51 -07:00
Phillip Webb
3481107ff7
Update copyright year of changed files
2024-10-18 10:48:29 -07:00
Moritz Halbritter
8efe6e02d9
Merge branch '3.2.x' into 3.3.x
...
Closes gh-42735
2024-10-17 13:38:03 +02:00
Moritz Halbritter
a3060652f8
Call String.toLowerCase and .toUppercase with explicit locale
...
Closes gh-42719
2024-10-17 13:20:39 +02:00
Phillip Webb
41ae973d16
Update copyright year of changed files
2024-10-16 13:08:37 -07:00
Phillip Webb
100bedc07d
Merge branch '3.2.x' into 3.3.x
...
Closes gh-42440
2024-09-24 14:29:09 -07:00
Phillip Webb
ad72411e2b
Apply conventions plugin to all subprojects
...
Closes gh-42438
2024-09-24 14:26:32 -07:00
Phillip Webb
593862b082
Merge branch '3.2.x' into 3.3.x
...
Closes gh-42417
2024-09-22 17:52:37 -07:00
arefbehboudi
0d3fceec5d
Polish
...
See gh-42413
2024-09-22 17:45:59 -07:00
Phillip Webb
599f1f1a9c
Merge branch '3.2.x' into 3.3.x
2024-09-03 21:04:36 -07:00
Phillip Webb
f3645bba13
Update copyright year of changed files
2024-09-03 21:04:26 -07:00
Phillip Webb
101ed0e543
Merge branch '3.2.x' into 3.3.x
...
Closes gh-42079
2024-09-01 15:25:15 -07:00
Phillip Webb
8c1d9872d2
Fix support for large zip files
...
Update `spring-boot-loader` to support large zip files by correctly
dealing with unsigned ints.
Fixes gh-42012
2024-09-01 15:13:46 -07:00
Andy Wilkinson
d4e1aedba5
Merge branch '3.2.x' into 3.3.x
2024-08-22 13:07:24 +01:00
Andy Wilkinson
0b24ee8571
Improve loading of jar entry certificates
...
Co-Authored-By: Phillip Webb <phil.webb@broadcom.com >
2024-08-22 10:56:25 +01:00
Scott Frederick
0451cb8686
Merge branch '3.2.x' into 3.3.x
...
Closes gh-41970
2024-08-20 15:49:25 -05:00
Scott Frederick
21b15558a2
Use classpath index when building classpath in PropertiesLauncher
...
Fixes gh-41719
2024-08-20 15:47:44 -05:00
Andy Wilkinson
732a7baf50
Merge branch '3.2.x' into 3.3.x
...
Closes gh-41873
2024-08-15 11:11:50 +01:00
rajin
c808d44c11
Register JarUrlClassLoader as parallel capable
...
See gh-41665
2024-08-15 11:11:18 +01:00
Moritz Halbritter
2a84fe5760
Merge branch '3.2.x' into 3.3.x
...
Closes gh-41857
2024-08-14 16:47:52 +02:00
Moritz Halbritter
1d45016d8c
Upgrade to spring-javaformat 0.0.43
...
Closes gh-41853
2024-08-14 16:32:41 +02:00
Andy Wilkinson
87417c0536
Merge branch '3.2.x' into 3.3.x
...
Closes gh-41633
2024-07-29 11:57:09 +01:00
Andy Wilkinson
4ee24bf9bd
Polish "Add rule to prevent calls to Objects.requireNonNull()"
...
See gh-41611
2024-07-29 11:41:26 +01:00
Andy Wilkinson
c642f6d268
Merge branch '3.2.x' into 3.3.x
...
Closes gh-41613
2024-07-25 16:16:35 +01:00
Andy Wilkinson
5f666eec5b
Reduce warnings reported by Eclipse
...
Closes gh-41598
2024-07-25 14:55:00 +01:00
Phillip Webb
147240aa0c
Merge branch '3.2.x'
...
Closes gh-41080
2024-06-11 13:32:30 -07:00
Phillip Webb
bcbcafaab2
Polish "Use method references when possible in test code"
...
See gh-40974
2024-06-11 12:58:04 -07:00
Ahmed Ashour
207327d97c
Use method references when possible in test code
...
See gh-40974
2024-06-11 12:58:00 -07:00
Andy Wilkinson
16302c18b2
Merge branch '3.2.x'
...
Closes gh-41006
2024-06-06 14:58:28 +01:00
Andy Wilkinson
217c2c862b
Ignore file entries in META-INF/versions of multi-release jar
...
Fixes gh-41001
2024-06-06 13:28:36 +01:00