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

Upgrade Ambry to Java 11 #2997

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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 @@ -20,7 +20,6 @@
import com.github.ambry.quota.QuotaResourceType;
import com.github.ambry.utils.TestUtils;
import com.github.ambry.utils.Utils;
import com.sun.org.apache.xpath.internal.operations.Bool;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.mockito.Mockito;
import sun.nio.ch.FileChannelImpl;

import static com.github.ambry.clustermap.ClusterMapUtils.*;
import static com.github.ambry.clustermap.ReplicaState.*;
Expand Down Expand Up @@ -2977,7 +2976,7 @@ public void testTestStorageAvailability() throws Exception {
// general

FileDescriptor getFileDescriptorFromFileChannel(FileChannel fileChannel) throws Exception {
Field field = FileChannelImpl.class.getDeclaredField("fd");
Field field = fileChannel.getClass().getDeclaredField("fd");
field.setAccessible(true);
return (FileDescriptor) field.get(fileChannel);
}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ subprojects {
apply from: "$rootDir/gradle/java-publishing.gradle"
}

sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 11
targetCompatibility = 11

if (JavaVersion.current().java9Compatible) {
// Our consumers still run on java 8, so this flag ensures that our builds are backwards compatible at runtime
Expand Down
Loading