You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restore manifest support for nested directory jars
Update `NestedJarFile` so that the `getManifest()` method returns the
manifest from the parent jar file for nested jars based on directory
entries.
This restores the previous behavior supported by Spring Boot 3.1 and
allows class methods such as `getPackage().getImplementationVersion()`
to return non `null` results.
Fixesgh-38996
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/NestedJarFile.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,9 @@ public InputStream getRawZipDataInputStream() throws IOException {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/NestedJarFileResources.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/zip/ZipContent.java
+46-10
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,8 @@ public final class ZipContent implements Closeable {
72
72
73
73
privatefinalSourcesource;
74
74
75
+
privatefinalKindkind;
76
+
75
77
privatefinalFileChannelDataBlockdata;
76
78
77
79
privatefinallongcentralDirectoryPos;
@@ -94,10 +96,11 @@ public final class ZipContent implements Closeable {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/NestedJarFileTests.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/zip/ZipContentTests.java
0 commit comments