Skip to content

Commit

Permalink
* Fix Loader.extractResource() for nested JAR files from Spring Bo…
Browse files Browse the repository at this point in the history
…ot (pull #685)
  • Loading branch information
huazai023 committed May 30, 2023
1 parent 4c40a56 commit 22ecaf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Fix `Loader.extractResource()` for nested JAR files from Spring Boot ([pull #685](https://github.com/bytedeco/javacpp/pull/685))
* Have `Parser` desugar `...` varargs to array `[]` for return types as well ([pull #682](https://github.com/bytedeco/javacpp/pull/682))
* Fix `Parser` failing on some `friend` functions for `operator` overloading ([pull #681](https://github.com/bytedeco/javacpp/pull/681))
* Fix `Parser` incorrectly casting `const` pointers to template arguments of pointer types ([pull #677](https://github.com/bytedeco/javacpp/pull/677))
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/bytedeco/javacpp/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ public static File extractResource(URL resourceURL, File directoryOrFile,
// ... extract it from our resources ...
file.delete();
String s = resourceURL.toString();
URL u = new URL(s.substring(0, s.indexOf("!/") + 2) + entryName);
URL u = new URL(s.substring(0, s.lastIndexOf("!/") + 2) + entryName);
file = extractResource(u, file, prefix, suffix);
}
file.setLastModified(entryTimestamp);
Expand Down

0 comments on commit 22ecaf7

Please sign in to comment.