Skip to content

Commit

Permalink
Merge pull request #4095 from reinhapa/update_aspectj
Browse files Browse the repository at this point in the history
[upgrade] switch to aspectj version 1.9.8-M1
  • Loading branch information
line-o committed Dec 6, 2021
2 parents 21e968a + 6bc5e40 commit deccc28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions exist-core/src/main/java/org/exist/webstart/JnlpServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;
import java.util.function.Supplier;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Expand Down Expand Up @@ -59,9 +60,9 @@ public void init() throws ServletException {

final Optional<Path> libDir = or(
Optional.ofNullable(System.getProperty("app.repo")).map(Paths::get).filter(Files::exists),
() -> or (
(Supplier<Optional<Path>>) () -> or ( // using explicit type declaration in order to circumvent AspectJ compiler bug, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=553623
Optional.ofNullable(System.getProperty("app.home")).map(Paths::get).map(p -> p.resolve("lib")).filter(Files::exists),
() -> or (
(Supplier<Optional<Path>>) () -> or ( // using explicit type declaration in order to circumvent AspectJ compiler bug, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=553623
Optional.ofNullable(System.getProperty("exist.home")).map(Paths::get).map(p -> p.resolve("lib")).filter(Files::exists),
() -> Optional.ofNullable(getServletContext().getRealPath("/")).map(Paths::get).map(p -> p.resolve("lib")).filter(Files::exists)
)
Expand Down Expand Up @@ -135,4 +136,4 @@ protected long getLastModified(final HttpServletRequest req) {
return -1L;
}
}
}
}
2 changes: 1 addition & 1 deletion exist-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<apache.httpcomponents.version>4.5.13</apache.httpcomponents.version>
<apache.httpcomponents.core.version>4.4.14</apache.httpcomponents.core.version>
<apache.xmlrpc.version>3.1.3</apache.xmlrpc.version>
<aspectj.version>1.9.4</aspectj.version>
<aspectj.version>1.9.8.M1</aspectj.version>
<exquery.distribution.version>0.2.0</exquery.distribution.version>
<icu.version>59.1</icu.version>
<izpack.version>5.1.3</izpack.version>
Expand Down

0 comments on commit deccc28

Please sign in to comment.