Skip to content

Commit deccc28

Browse files
authored
Merge pull request #4095 from reinhapa/update_aspectj
[upgrade] switch to aspectj version 1.9.8-M1
2 parents 21e968a + 6bc5e40 commit deccc28

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

exist-core/src/main/java/org/exist/webstart/JnlpServlet.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import java.nio.file.Path;
3030
import java.nio.file.Paths;
3131
import java.util.Optional;
32+
import java.util.function.Supplier;
3233
import javax.servlet.ServletException;
3334
import javax.servlet.http.HttpServlet;
3435
import javax.servlet.http.HttpServletRequest;
@@ -59,9 +60,9 @@ public void init() throws ServletException {
5960

6061
final Optional<Path> libDir = or(
6162
Optional.ofNullable(System.getProperty("app.repo")).map(Paths::get).filter(Files::exists),
62-
() -> or (
63+
(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
6364
Optional.ofNullable(System.getProperty("app.home")).map(Paths::get).map(p -> p.resolve("lib")).filter(Files::exists),
64-
() -> or (
65+
(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
6566
Optional.ofNullable(System.getProperty("exist.home")).map(Paths::get).map(p -> p.resolve("lib")).filter(Files::exists),
6667
() -> Optional.ofNullable(getServletContext().getRealPath("/")).map(Paths::get).map(p -> p.resolve("lib")).filter(Files::exists)
6768
)
@@ -135,4 +136,4 @@ protected long getLastModified(final HttpServletRequest req) {
135136
return -1L;
136137
}
137138
}
138-
}
139+
}

exist-parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<apache.httpcomponents.version>4.5.13</apache.httpcomponents.version>
105105
<apache.httpcomponents.core.version>4.4.14</apache.httpcomponents.core.version>
106106
<apache.xmlrpc.version>3.1.3</apache.xmlrpc.version>
107-
<aspectj.version>1.9.4</aspectj.version>
107+
<aspectj.version>1.9.8.M1</aspectj.version>
108108
<exquery.distribution.version>0.2.0</exquery.distribution.version>
109109
<icu.version>59.1</icu.version>
110110
<izpack.version>5.1.3</izpack.version>

0 commit comments

Comments
 (0)