Skip to content

Commit 8b3d62a

Browse files
committed
native image fix
1 parent 5cee6e9 commit 8b3d62a

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

driver/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@
186186
<dependency>
187187
<groupId>org.graalvm.sdk</groupId>
188188
<artifactId>graal-sdk</artifactId>
189-
<version>22.3.3</version>
190-
<scope>test</scope>
189+
<version>23.1.1</version>
190+
<scope>provided</scope>
191191
</dependency>
192192
<dependency>
193193
<groupId>io.smallrye.config</groupId>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package graal;
2+
3+
import com.oracle.svm.core.annotate.Substitute;
4+
import com.oracle.svm.core.annotate.TargetClass;
5+
6+
7+
@TargetClass(className = "io.netty.handler.codec.compression.Brotli")
8+
final class Target_com_arangodb_shaded_netty_handler_codec_compression_Brotli {
9+
@Substitute
10+
public static boolean isAvailable() {
11+
return false;
12+
}
13+
14+
@Substitute
15+
public static void ensureAvailability() throws Throwable {
16+
throw new UnsupportedOperationException();
17+
}
18+
}
19+
20+
public class BrotliSubstitutions {
21+
22+
}

driver/src/test/java/graal/VertxSubstitutions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void close(Promise<Void> promise) {
8282
}
8383

8484
@Substitute
85-
public MessageImpl createMessage(boolean send, String address, MultiMap headers, Object body, String codecName) {
85+
public MessageImpl createMessage(boolean send, boolean isLocal, String address, MultiMap headers, Object body, String codecName) {
8686
throw new RuntimeException("Not Implemented");
8787
}
8888

pom.xml

+1-7
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
<plugin>
406406
<groupId>org.graalvm.buildtools</groupId>
407407
<artifactId>native-maven-plugin</artifactId>
408-
<version>0.9.27</version>
408+
<version>0.9.28</version>
409409
<extensions>true</extensions>
410410
<executions>
411411
<execution>
@@ -432,12 +432,6 @@
432432
</plugins>
433433
</build>
434434
<dependencies>
435-
<dependency>
436-
<groupId>com.aayushatharva.brotli4j</groupId>
437-
<artifactId>brotli4j</artifactId>
438-
<version>1.11.0</version>
439-
<scope>test</scope>
440-
</dependency>
441435
<dependency>
442436
<groupId>javax.annotation</groupId>
443437
<artifactId>javax.annotation-api</artifactId>

shaded/src/main/java/graal/VertxSubstitutions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void close(Promise<Void> promise) {
8282
}
8383

8484
@Substitute
85-
public MessageImpl createMessage(boolean send, String address, MultiMap headers, Object body, String codecName) {
85+
public MessageImpl createMessage(boolean send, boolean isLocal, String address, MultiMap headers, Object body, String codecName) {
8686
throw new RuntimeException("Not Implemented");
8787
}
8888

0 commit comments

Comments
 (0)