I am using java8. I am getting the following error when executing 'ant' command.
build-test: [javac] Compiling 58 source files to /Users/sshil/opensource/cassandra/build/test/classes [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.openjdk.jmh.generators.BenchmarkProcessor' less than -source '1.8' [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:117: error: cannot find symbol [javac] InstanceClassLoader.getDefaultLoadSharedFilter().test(s) || [javac] ^ [javac] symbol: method getDefaultLoadSharedFilter() [javac] location: class InstanceClassLoader [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/DelegatingInvokableInstance.java:66: error: cannot find symbol [javac] return delegate().executeInternalWithResult(query, args); [javac] ^ [javac] symbol: method executeInternalWithResult(String,Object[]) [javac] location: interface IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/DelegatingInvokableInstance.java:93: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/DelegatingInvokableInstance.java:96: error: cannot find symbol [javac] return delegate().getReleaseVersionString(); [javac] ^ [javac] symbol: method getReleaseVersionString() [javac] location: interface IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:177: error: constructor InstanceClassLoader in class InstanceClassLoader cannot be applied to given types; [javac] ClassLoader classLoader = new InstanceClassLoader(generation, config.num(), version.classpath, sharedClassLoader, SHARED_PREDICATE); [javac] ^ [javac] required: int,int,URL[],ClassLoader [javac] found: int,int,URL[],ClassLoader,Predicate<String> [javac] reason: actual and formal argument lists differ in length [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:251: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:254: error: cannot find symbol [javac] return delegate().getLogsEnabled(); [javac] ^ [javac] symbol: method getLogsEnabled() [javac] location: interface IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:257: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:260: error: cannot find symbol [javac] return delegate().logs(); [javac] ^ [javac] symbol: method logs() [javac] location: interface IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:689: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/AbstractCluster.java:716: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Coordinator.java:51: error: Coordinator is not abstract and does not override abstract method asyncExecuteWithTracing(UUID,String,ConsistencyLevel,Object...) in ICoordinator [javac] public class Coordinator implements ICoordinator [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Coordinator.java:60: error: executeWithResult(String,ConsistencyLevel,Object...) in Coordinator cannot implement executeWithResult(String,ConsistencyLevel,Object...) in ICoordinator [javac] public SimpleQueryResult executeWithResult(String query, ConsistencyLevel consistencyLevel, Object... boundValues) [javac] ^ [javac] return type SimpleQueryResult is not compatible with QueryResult [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Coordinator.java:59: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Coordinator.java:126: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Instance.java:127: error: Instance is not abstract and does not override abstract method executeInternal(String,Object...) in IInstance [javac] public class Instance extends IsolatedExecutor implements IInvokableInstance [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Instance.java:148: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Instance.java:154: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Instance.java:186: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Instance.java:811: error: constructor NodeToolResult in class NodeToolResult cannot be applied to given types; [javac] return new NodeToolResult(commandAndArgs, rc, [javac] ^ [javac] required: String[],int,List<Notification>,Throwable [javac] found: String[],int,ArrayList<Notification>,Throwable,String,String [javac] reason: actual and formal argument lists differ in length [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/impl/Instance.java:817: error: incompatible types: Object cannot be converted to NodeToolResult [javac] }).call(); [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/TestBaseImpl.java:28: error: TestBaseImpl is not abstract and does not override abstract method <I,C>builder() in DistributedTestBase [javac] public class TestBaseImpl extends DistributedTestBase [javac] ^ [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/TestBaseImpl.java:41: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public Cluster.Builder builder() { [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/TestBaseImpl.java:40: error: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/BootstrapBinaryDisabledTest.java:44: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class BootstrapBinaryDisabledTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/BootstrapBinaryDisabledTest.java:122: error: cannot find symbol [javac] node.logs().watchFor("Starting listening for CQL clients"); [javac] ^ [javac] symbol: method logs() [javac] location: variable node of type IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/BootstrapBinaryDisabledTest.java:128: error: cannot find symbol [javac] SimpleQueryResult qr = node.executeInternalWithResult("SELECT bootstrapped FROM system.local WHERE key='local'"); [javac] ^ [javac] symbol: method executeInternalWithResult(String) [javac] location: variable node of type IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/BootstrapBinaryDisabledTest.java:135: error: cannot find symbol [javac] LogResult<List<String>> results = node.logs().grep(msg); [javac] ^ [javac] symbol: method logs() [javac] location: variable node of type IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/BootstrapTest.java:39: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class BootstrapTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ByteBuddyExamples.java:44: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class ByteBuddyExamples extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/CASTest.java:53: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class CASTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ClientNetworkStopStartTest.java:46: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class ClientNetworkStopStartTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ClientNetworkStopStartTest.java:85: error: incompatible types: QueryResult cannot be converted to SimpleQueryResult [javac] SimpleQueryResult qr = cluster.coordinator(1).executeWithResult("SELECT * FROM " + KEYSPACE + ".tbl", ConsistencyLevel.ALL); [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ClientNetworkStopStartTest.java:86: error: no suitable method found for assertRows(SimpleQueryResult,SimpleQueryResult) [javac] AssertUtils.assertRows(qr, QueryResults.builder().row(0, 0).build()); [javac] ^ [javac] method AssertUtils.assertRows(Object[][],Object[]...) is not applicable [javac] (argument mismatch; SimpleQueryResult cannot be converted to Object[][]) [javac] method AssertUtils.assertRows(Iterator<Object[]>,Iterator<Object[]>) is not applicable [javac] (argument mismatch; SimpleQueryResult cannot be converted to Iterator<Object[]>) [javac] method AssertUtils.assertRows(Iterator<Object[]>,Object[]...) is not applicable [javac] (argument mismatch; SimpleQueryResult cannot be converted to Iterator<Object[]>) [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ClientNetworkStopStartTest.java:117: error: incompatible types: QueryResult cannot be converted to SimpleQueryResult [javac] SimpleQueryResult qr = cluster.coordinator(1).executeWithResult("SELECT * FROM " + KEYSPACE + ".tbl", ConsistencyLevel.ALL); [javac] ^ [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ClientNetworkStopStartTest.java:118: error: no suitable method found for assertRows(SimpleQueryResult,SimpleQueryResult) [javac] AssertUtils.assertRows(qr, QueryResults.builder().row(0, 0).build()); [javac] ^ [javac] method AssertUtils.assertRows(Object[][],Object[]...) is not applicable [javac] (argument mismatch; SimpleQueryResult cannot be converted to Object[][]) [javac] method AssertUtils.assertRows(Iterator<Object[]>,Iterator<Object[]>) is not applicable [javac] (argument mismatch; SimpleQueryResult cannot be converted to Iterator<Object[]>) [javac] method AssertUtils.assertRows(Iterator<Object[]>,Object[]...) is not applicable [javac] (argument mismatch; SimpleQueryResult cannot be converted to Iterator<Object[]>) [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ClientNetworkStopStartTest.java:130: error: cannot find symbol [javac] asserts.stdoutContains(expectedStatus); [javac] ^ [javac] symbol: method stdoutContains(String) [javac] location: variable asserts of type NodeToolResult.Asserts [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ClientNetworkStopStartTest.java:132: error: cannot find symbol [javac] asserts.stdoutNotContains(notExpected); [javac] ^ [javac] symbol: method stdoutNotContains(String) [javac] location: variable asserts of type NodeToolResult.Asserts [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/GossipSettlesTest.java:29: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class GossipSettlesTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/GossipShutdownTest.java:46: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class GossipShutdownTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/GossipTest.java:53: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class GossipTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/JVMDTestTest.java:51: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class JVMDTestTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/JVMDTestTest.java:79: error: cannot find symbol [javac] assertFalse(cluster.get(1).logs().grep("^DEBUG").getResult().isEmpty()); [javac] ^ [javac] symbol: method logs() [javac] location: interface IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/JVMDTestTest.java:81: error: cannot find symbol [javac] LogAction logs = cluster.get(2).logs(); [javac] ^ [javac] symbol: method logs() [javac] location: interface IInvokableInstance [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/JVMStabilityInspectorCorruptSSTableExceptionTest.java:54: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class JVMStabilityInspectorCorruptSSTableExceptionTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/MessageFiltersTest.java:40: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class MessageFiltersTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/MessageForwardingTest.java:40: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class MessageForwardingTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/NativeProtocolTest.java:38: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class NativeProtocolTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/NetworkTopologyTest.java:36: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class NetworkTopologyTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/NodeToolTest.java:29: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class NodeToolTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C> [javac] where I,C are type-variables: [javac] I extends IInstance declared in method <I,C>builder() [javac] C extends ICluster declared in method <I,C>builder() [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/NodeToolTest.java:48: error: cannot find symbol [javac] ringResult.asserts().stdoutContains("Datacenter: datacenter0"); [javac] ^ [javac] symbol: method stdoutContains(String) [javac] location: class NodeToolResult.Asserts [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/NodeToolTest.java:49: error: cannot find symbol [javac] ringResult.asserts().stdoutContains("127.0.0.1 rack0 Up Normal"); [javac] ^ [javac] symbol: method stdoutContains(String) [javac] location: class NodeToolResult.Asserts [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/NodeToolTest.java:50: error: cannot find symbol [javac] assertEquals("Non-empty error output", "", ringResult.getStderr()); [javac] ^ [javac] symbol: method getStderr() [javac] location: variable ringResult of type NodeToolResult [javac] /Users/sshil/opensource/cassandra/test/distributed/org/apache/cassandra/distributed/test/ReadRepairTest.java:28: error: builder() in TestBaseImpl cannot override <I,C>builder() in DistributedTestBase [javac] public class ReadRepairTest extends TestBaseImpl [javac] ^ [javac] return type org.apache.cassandra.distributed.Cluster.Builder is not compatible with org.apache.cassandra.distributed.shared.Builder<I,C>