Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraalVM native image support fixes #1611

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.datastax.oss.driver.api.core.context.DriverContext;
import com.datastax.oss.driver.internal.core.util.GraalDependencyChecker;
import com.datastax.oss.protocol.internal.Compressor;
import com.oracle.svm.core.annotate.Delete;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import io.netty.buffer.ByteBuf;
Expand Down Expand Up @@ -82,14 +81,6 @@ public static Compressor<ByteBuf> newInstance(String name, DriverContext context
}
}

@TargetClass(value = Lz4Compressor.class, onlyWith = Lz4Missing.class)
@Delete
public static final class DeleteLz4Compressor {}

@TargetClass(value = SnappyCompressor.class)
@Delete
public static final class DeleteSnappyCompressor {}

public static class Lz4Present implements BooleanSupplier {
@Override
public boolean getAsBoolean() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Args=-H:IncludeResources=reference\\.conf \
-H:IncludeResources=application\\.properties \
-H:IncludeResources=.*Driver\\.properties \
-H:DynamicProxyConfigurationResources=${.}/proxy.json \
-H:ReflectionConfigurationResources=${.}/reflection.json
-H:ReflectionConfigurationResources=${.}/reflection.json \
--initialize-at-build-time=com.datastax.oss.driver.internal.core.util.Dependency